Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚXMLÊý¾ÝÖвåÈë»Ø³µ»»ÐÐ×Ö·û


ÔÚXMLÊý¾ÝÖУ¬Ò»Ð©ÌØÊâ×Ö·û±ØÐëÓÃתÒå·ûºÅÀ´´úÌ棬¶ø»Ø³µ»»ÐÐ×Ö·û¾ÍÊÇÊôÓÚÌØÊâ·ûºÅ¡£
¿Õ¸ñ ( )
Tab (	)
»Ø³µ (
)
»»ÐÐ (
)
ÏÂÃæÊÇÒ»¸ö±¨±íXMLÊý¾Ý£¬ÀïÃæ°üÀ¨Óлسµ»»ÐÐ×Ö·û£º
<report>
<NewDataSet>
<Table>
<CustomerID>BLONP</CustomerID>
<CompanyName>¹úð©</CompanyName>
<ContactName>»ÆÑÅÁá</ContactName>
<ContactTitle>Êг¡¾­Àí</ContactTitle>
<Address>¹ã·¢±±Â·&#x0D;&#x0A;10 ºÅ</Address>
<City>´óÁ¬</City>
<Region>¶«±±</Region>
<PostalCode>565479</PostalCode>
<Country>Öйú</Country>
<Phone>(0671) 88601531</Phone>
<Fax>(0671) 88601532</Fax>
</Table>
<Table>
<CustomerID>CACTU</CustomerID>
<CompanyName>Íþº½»õÔËÓÐÏÞ¹«Ë¾</CompanyName>
<ContactName>ÁõÏÈÉú</ContactName>
<ContactTitle>ÏúÊÛ´úÀí</ContactTitle>
<Address>¾­Æßγ¶þ· 13 ºÅ</Address>
<City>´óÁ¬</City>
<Region>¶«±±</Region>
<PostalCode>120412</PostalCode>
<Country>Öйú</Country>
<Phone>(061) 11355555</Phone>
<Fax>(061) 11354892</Fax>
</Table>
</NewDataSet>
<_grparam>
<StaticBox1>µÚÒ»ÐÐÎÄ×Ö&#x0D;&#x0A;µÚ¶þÐÐÎÄ×Ö</StaticBox1>
</_grparam>
</report>
<Address>¹ã·¢±±Â·&#x0D;&#x0A;10 ºÅ</Address> - “10 ºÅ”֮ǰ¾Í°üº¬Á˻سµ»»ÐзûºÅ
<StaticBox1>µÚÒ»ÐÐÎÄ×Ö&#x0D;&#x0A;µÚ¶þÐÐÎÄ×Ö</StaticBox1> - “µÚ¶þÐÐÎÄ×֮֔ǰ¾Í°üº¬Á˻سµ»»ÐзûºÅ
XMLÖл¹ÓкܶàÌØÊâ×Ö·û£¬¶¼ÒªÓÃתÒå·ûºÅÀ´´úÌæ¡£Èç¹ûÊDZà³ÌÉú³ÉXMLÊý¾Ý£¬Í¨³£¶¼Óк¯Êý»á×Ô¶¯´¦Àíת»»ÌØÊâ·ûºÅ¡£
 


Ïà¹ØÎĵµ£º

C#ÖÐÓÃXmlDocument¶ÔÏó»ñÈ¡XMLÎļþÖеĽڵãÖµ

 xmlÎļþ:
<?xml version="1.0" encoding="utf-8" ?>
<bookstore>
  <book>
    <title lang="eng">Harry Potter</title>
    <price>29.99</price>
  </book>
  <book>
......

C#ÖÐÓÃXmlTextReader¶ÔÏó²Ù×÷XMLÎļþ

sd.xmlÎļþ:
<?xml version="1.0" encoding="gb2312"?>
<!--ÕâÊÇÒ»¸öxmlÎļþ-->
<xml1>
  <item name="1">µÚÒ»¸öitem</item>
  <item name="2">
      <item name="1">Õâ¸ö½áµã(1) ......

ʹÓà XStreamʵÏÖJavaBean Óë XML/JSON Ö®¼äÏ໥ת»»

XML ºÍ JSON Êǵ±½ñ³£ÓõÄÁ½ÖÖÊý¾ÝÃèÊöÓë´«ÊäµÄ¸ñʽ£¬ÌرðÊÇÉæ¼°µ½ JS ʱʹÓà JSON ÆÄΪƵ·±¡£×ÔÈ»£¬ÔÚ Java  µÄÊÀ½çÀïÉÙ²»ÁËÍê³É JavaBean ÓëÕâÁ½ÖÖ¸ñʽÏ໥ת»»µÄ×é¼þ£¬ÄǾÍÊÇ XStream ºÍ JSON-lib¡£ÕâÀïÎÒ¼òµ¥¼ÇÏ XStream  µÄÓ÷¨¡£
ÆäʵÏàÀàËƵŤ¾ßÔçÒÑÓÐÖ®¡£Èç¹ûÓùý DWR µÄͬ־£¬Ò»¶¨ÓÐÓ¡Ïñ£¬DWR ½øÐÐÔ¶ ......

XmlÖÐSelectSingleNode·½·¨ÖеÄxpathÓ÷¨

×î³£¼ûµÄXMLÊý¾ÝÀàÐÍÓУºElement, Attribute£¬Comment, Text.  
 
   Element, Ö¸ÐÎÈç<Name>Tom<Name>µÄ½Úµã¡£Ëü¿ÉÒÔ°üÀ¨£ºElement, Text, Comment, ProcessingInstruction, CDATA, and EntityReference.  
 
   Attribute, Ö¸ÔÚ<Employee >Ö ......

XML ³õ¼¶½Ì³Ì

XML ±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML ±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
Ó¦¸ÃÕÆÎյĻù´¡ÖªÊ¶£º
ÔÚÄú¼ÌÐøѧϰ֮ǰ£¬ÐèÒª¶ÔÒÔÏÂ֪ʶÓлù±¾µÄÁ˽⣺
HTML / XHTML
JavaScript »ò VBScript
Èç¹ûÄúÏ£ÍûÊ×ÏÈѧϰÕâЩÏîÄ¿£¬ÇëÔÚÎÒÃÇµÄ Ê×Ò³ ·ÃÎÊÕâЩ½Ì³Ì¡£
ʲôÊÇXML?
XML Ö¸¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨EXt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ