Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Êý¾Ý£¬Í¨³£¶¼Óк¯Êý»á×Ô¶¯´¦Àíת»»ÌØÊâ·ûºÅ¡£
 


Ïà¹ØÎĵµ£º

JSPÖÐÉú³É¶¯Ì¬XMLʵÀý

<?xml version="1.0" encoding="gb2312" ?>
<?xml-stylesheet type="tet/css" href="mystyle.css" ?>
<%@ page errorPage="error.jap" %>
<%@ page contentType="text/xml" %>
<realmarid>
»ÊÂí»¨Ãû²á
<athlete>
<name>Æë´ïÄÚ</name>
<country> ......

´«ÖDz¥¿Í—XML»ù´¡£¨ÉÏ£©

      ½ñÌìÊÇÉϿεĵÚÒ»Ì죬ûÏëµ½µÚÒ»Ìì¾Í½²ÁËÄÇô¶àµÄ¶«Î÷£¬¿´ÁË¿´ÀÏʦµÄPPT£¬·¢ÏÖ¶«Î÷ËäÈ»¶à£¬µ«ÊǶ¼²»ÄÑÀí½â£¬»¹ÊDZȽÏÈÝÒ׵ġ£¹þ¹þ£¬µÃÒæÓÚÔÚ´«ÖÇ»ù´¡°àµÄ´¸Á¶£¬Ó¢Ã÷µÄ¾ö¶¨¾ÍÊÇ´ÓͷѧÆð¡£
      ¸Õ¹ýÍê´º½ÚÀÏ·½µÄ»°»¹ÊÇ˵µÄ²»ÊǺÜÁ÷Àû°¡£¨Òª¼ÓÇ¿ÆÕͨ»°Á·Ï°à¸ ......

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

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

xml±à³Ì2


.dtdÎļþÖÐÈç¹ûÓÐÖÐÎÄ,±ØÐëÁí´æΪUTF-8±àÂë
ÎÊÌâ:
TransformerFactoryΪ³éÏóÀà,²»ÄÜnewʵÀý,µ«ÌṩÁË·½·¨À´»ñµÃ
TransformerFactory factory = TransformerFacory.newInstance();
factory.newDocumentBuilder();
ÕâÀïnewDocumentBuilder()Ϊ³éÏó·½·¨,ΪʲôÄܵ÷ÓÃÄØ?
×¢Òâ:ÕâÀïfactory±äÁ¿Ö¸ÏòµÄÊÇÒ»¸öʵÀý,´ËʵÀýÊ ......

¹ØÓÚSQLServer2005µÄѧϰ±Ê¼Ç——XMLµÄ´¦Àí

ÔÚ
SQLServer2005
ÖжÔ
XML
µÄ´¦Àí¹¦ÄÜÏÔÈ»ÔöÇ¿Á˺ܶ࣬ÌṩÁË
query(),value(),exist(),modify(),nodes()
µÈº¯Êý¡£
¹ØÓÚ
xml
£¬ÄÑÒÔÀí½âµÄ²»ÊÇ
SQLServer
ÌṩµÄº¯Êý£¬¶øÊǶÔ
xml
±¾ÉíµÄÀí½â£¬¿´Ëƺܼòµ¥µÄÎļþ¸ñʽ£¬´¦ÀíÆðÀ´È´ÊǷdz£À§Äѵġ£±¾ÎÄÖ»Êdzõ̽һ϶øÒÑ¡£
Ïê¼û
SQLServer
Áª»ú°ïÖú£º
Ö÷Ìâ
˵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ