ÔÚXMLÊý¾ÝÖвåÈë»Ø³µ»»ÐÐ×Ö·û
ÔÚXMLÊý¾ÝÖУ¬Ò»Ð©ÌØÊâ×Ö·û±ØÐëÓÃתÒå·ûºÅÀ´´úÌ棬¶ø»Ø³µ»»ÐÐ×Ö·û¾ÍÊÇÊôÓÚÌØÊâ·ûºÅ¡£
¿Õ¸ñ ( )
Tab (	)
»Ø³µ (
)
»»ÐÐ (
)
ÏÂÃæÊÇÒ»¸ö±¨±íXMLÊý¾Ý£¬ÀïÃæ°üÀ¨Óлسµ»»ÐÐ×Ö·û£º
<report>
<NewDataSet>
<Table>
<CustomerID>BLONP</CustomerID>
<CompanyName>¹úð©</CompanyName>
<ContactName>»ÆÑÅÁá</ContactName>
<ContactTitle>Êг¡¾Àí</ContactTitle>
<Address>¹ã·¢±±Â·
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>µÚÒ»ÐÐÎÄ×Ö
µÚ¶þÐÐÎÄ×Ö</StaticBox1>
</_grparam>
</report>
<Address>¹ã·¢±±Â·
10 ºÅ</Address> - “10 ºÅ”֮ǰ¾Í°üº¬Á˻سµ»»ÐзûºÅ
<StaticBox1>µÚÒ»ÐÐÎÄ×Ö
µÚ¶þÐÐÎÄ×Ö</StaticBox1> - “µÚ¶þÐÐÎÄ×֮֔ǰ¾Í°üº¬Á˻سµ»»ÐзûºÅ
XMLÖл¹ÓкܶàÌØÊâ×Ö·û£¬¶¼ÒªÓÃתÒå·ûºÅÀ´´úÌæ¡£Èç¹ûÊDZà³ÌÉú³É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> ......
½ñÌìÊÇÉϿεĵÚÒ»Ì죬ûÏëµ½µÚÒ»Ìì¾Í½²ÁËÄÇô¶àµÄ¶«Î÷£¬¿´ÁË¿´ÀÏʦµÄPPT£¬·¢ÏÖ¶«Î÷ËäÈ»¶à£¬µ«ÊǶ¼²»ÄÑÀí½â£¬»¹ÊDZȽÏÈÝÒ׵ġ£¹þ¹þ£¬µÃÒæÓÚÔÚ´«ÖÇ»ù´¡°àµÄ´¸Á¶£¬Ó¢Ã÷µÄ¾ö¶¨¾ÍÊÇ´ÓͷѧÆð¡£
¸Õ¹ýÍê´º½ÚÀÏ·½µÄ»°»¹ÊÇ˵µÄ²»ÊǺÜÁ÷Àû°¡£¨Òª¼ÓÇ¿ÆÕͨ»°Á·Ï°à¸ ......
XML ºÍ JSON Êǵ±½ñ³£ÓõÄÁ½ÖÖÊý¾ÝÃèÊöÓë´«ÊäµÄ¸ñʽ£¬ÌرðÊÇÉæ¼°µ½ JS ʱʹÓà JSON ÆÄΪƵ·±¡£×ÔÈ»£¬ÔÚ Java µÄÊÀ½çÀïÉÙ²»ÁËÍê³É JavaBean ÓëÕâÁ½ÖÖ¸ñʽÏ໥ת»»µÄ×é¼þ£¬ÄǾÍÊÇ XStream ºÍ JSON-lib¡£ÕâÀïÎÒ¼òµ¥¼ÇÏ XStream µÄÓ÷¨¡£
ÆäʵÏàÀàËƵŤ¾ßÔçÒÑÓÐÖ®¡£Èç¹ûÓùý DWR µÄͬ־£¬Ò»¶¨ÓÐÓ¡Ïñ£¬DWR ½øÐÐÔ¶ ......
.dtdÎļþÖÐÈç¹ûÓÐÖÐÎÄ,±ØÐëÁí´æΪUTF-8±àÂë
ÎÊÌâ:
TransformerFactoryΪ³éÏóÀà,²»ÄÜnewʵÀý,µ«ÌṩÁË·½·¨À´»ñµÃ
TransformerFactory factory = TransformerFacory.newInstance();
factory.newDocumentBuilder();
ÕâÀïnewDocumentBuilder()Ϊ³éÏó·½·¨,ΪʲôÄܵ÷ÓÃÄØ?
×¢Òâ:ÕâÀïfactory±äÁ¿Ö¸ÏòµÄÊÇÒ»¸öʵÀý,´ËʵÀýÊ ......
ÔÚ
SQLServer2005
ÖжÔ
XML
µÄ´¦Àí¹¦ÄÜÏÔÈ»ÔöÇ¿Á˺ܶ࣬ÌṩÁË
query(),value(),exist(),modify(),nodes()
µÈº¯Êý¡£
¹ØÓÚ
xml
£¬ÄÑÒÔÀí½âµÄ²»ÊÇ
SQLServer
ÌṩµÄº¯Êý£¬¶øÊǶÔ
xml
±¾ÉíµÄÀí½â£¬¿´Ëƺܼòµ¥µÄÎļþ¸ñʽ£¬´¦ÀíÆðÀ´È´ÊǷdz£À§Äѵġ£±¾ÎÄÖ»Êdzõ̽һ϶øÒÑ¡£
Ïê¼û
SQLServer
Áª»ú°ïÖú£º
Ö÷Ìâ
˵ ......