»ùÓÚXMLµÄWeb·Ö²¼Ê½Êý¾Ý½»»»¼¼Êõ
Ò»¡¢WDDXµÄ²úÉú
WDDX£¬Ó¢ÎÄÈ«³ÆΪWeb Distributed Data
Exchange£¬ÊÇÒ»ÖÖ»ùÓÚXMLµÄWeb·Ö²¼Ê½Êý¾Ý½»»»¼¼Êõ¡£WDDX×îÔçÊÇÃÀ¹úAllaire¹«Ë¾µÄ³ÌÐò¼¼ÊõÉè¼ÆʦSimeon
SimeonovΪÁ˽â¾öColdFusionÖÐÉæ¼°µ½µÄ·Ö²¼¼ÆËãÎÊÌâ¶ø½¨Á¢µÄ¡£Ëæ׏¤×÷µÄ¿ªÕ¹£¬WDDXÖð½¥Ñݱä³ÉΪһÖÖ¿ÉÓÃÓÚ²»Í¬µÄÓ¦Óû·¾³Öн»»»¸´ÔӵĽṹ»¯Êý¾ÝµÄÊý¾Ý½»»»¼¼Êõ¡£Ó¦ÓÃWDDX£¬²»Í¬µÄWebϵͳ֮¼ä¿ÉÒÔ·½±ãµØ½øÐпçÓïÑÔ¡¢¿çϵͳ¡¢¿çƽ̨µÄ¸´ÔÓÊý¾ÝµÄ½»»»Óë¹²Ïí£¬¶ÔÓÚÌá¸ßWebÕ¾µãµÄÕûÌå¼ÛÖµÒÔ¼°ÐÖúWeb¿ª·¢ÈËÔ±¸ü¼Ó·½±ãµØ¹¹½¨WebϵͳÓÐ×ÅÖØÒªµÄÓ¦ÓÃÒâÒå¡£
¶þ¡¢WDDX¹¤×÷»úÀí¼°×é³É
¼òµ¥µØ˵£¬WDDXÊÇͨ¹ýÔÚ²»Í¬Ó¦Óû·¾³ÏµĽṹ»¯Êý¾ÝÖ®¼ä½¨Á¢Ò»¸ö"½»»»ÇÅÁº"---“XMLÖмä¼þ”Íê³ÉÊý¾Ý½»»»µÄ¡£ÒòΪ¼¸ºõËùÓÐWebÁìÓò±ê×¼µÄ¿ª·¢»·¾³£¨ÈçColdFusion, Perl, ASP, Java, #,
PHPµÈ£©¶¼°üº¬ÓÐ×Ô¼ºÄÚÔÚµÄÊý¾Ý½á¹¹£¬ËùÒÔWDDXΪÿһÖÖÓïÑÔÌṩÁËһЩģ¿é.
ÕâЩģ¿é¼È¿ÉÒÔ×Ô¶¯µØ½«ÕâЩÄÚÔÚµÄÊý¾Ý½á¹¹·Òë³ÉÒ»ÖÖ¾«Á¶µÄ»ùÓÚXMLµÄÃèÊö£¬¼´ÐòÁл¯(serialized)£»Í¬ÑùÒ²¿ÉÒÔ½«»ùÓÚXMLµÄÃèÊöת»»ÎªÄ³
ÖÖÓïÑÔ»·¾³ÏµÄÊý¾Ý½á¹¹£¬¼´·´ÐòÁл¯(deserialized)¡£ÕâÑù£¬Á½¸ö²»Í¬Ó¦Óû·¾³ÏµĽṹ»¯Êý¾Ýͨ¹ý»ùÓÚXMLµÄÃèÊöËù¹¹³ÉµÄÖмä¼þʵÏÖ½»»»»ò
Õß¹²Ïí¡£±ÈÈ磬WDDX³ÌÐòÔ±¿ÉÒÔÔÚColdFusionÖлñÈ¡Ò»¸ö¸´ÔÓÊý×éµÄÖµ£¬Í¨¹ýWDDXÏàӦģ¿é½«ÆäÐòÁл¯³ÉΪXMLËùÃèÊöµÄÊý¾Ý½á¹¹£¬È»ºó½«Æä
·¢Ë͸øASP·þÎñÆ÷£¬×îºóÔÙͨ¹ýWDDXÄ£¿é½«¸ÃXMLËùÃèÊöµÄÊý¾Ý½á¹¹·´ÐòÁл¯×ª»»³ÉÒ»¸öVBScriptµÄÊý×é¶ÔÏ󣬶øÔÏȵÄËùÓÐÊý¾ÝÀàÐͶ¼±»ÎÞËðת
»»¡£Í¬Ê±£¬ÓÉÓÚËùÓеÄXML´¦ÀíºÍ½»»¥¹ý³Ì¶¼×ªÒÆÖÁWDDXÄ£¿éÖУ¬¿ª·¢Õ߾Ͳ»±ØÔÙ¶ÔXMLÎĵµ±¾Éí½øÐбà³ÌºÍ´¦Àí,´Ó¶øʹµÃÕâÖÖÓïÑÔÖ®¼äµÄת»»¹ý³Ì¶ÔÓÚ¿ª·¢ÕßÀ´Ëµ¾Í¸ü¼Ó͸Ã÷¡£
WDDXÓÉÁ½´ó²¿·Ö×é³É£º
µÚÒ»²¿·ÖÊǸù¾ÝXML 1.0¹æ·¶Öƶ¨µÄÒ»ÖÖ¶ÀÁ¢ÓïÑÔµÄÊý¾ÝÃèÊö¡£ÒÀ¾Ý¹æ·¶£¬WDDXÖ§³ÖµÄÊý¾ÝÀàÐÍÓв¼¶ûÐÍ£¨boolean£©
¡¢ Êý×ÖÐÍ£¨number£©¡¢ ÈÕÆÚÐÍ£¨date-time£© ºÍ
×Ö·û´®ÐÍ£¨string£©ÕâЩ»ù±¾Êý¾ÝÀàÐÍ¡£´ËÍâWDDX»¹Ö§³ÖÏÂÁи´ÔÓÊý¾ÝÀàÐÍ£ºÊý×飨array£©¡¢ ½á¹¹£¨structure£©
ºÍ¼Ç¼¼¯(recordset)¡£ÆäÖУ¬Êý×é¿ÉÒÔÊÇÓÃÕûÊý±êÒýµÄÈÎÒâÀàÐͶÔÏóµÄ¼¯ºÏ£¬½á¹¹¿ÉÒÔÊÇÓÃ×Ö·û´®±êÒýµÄÈÎÒâÀàÐͶÔÏóµÄ¼¯ºÏ£¬¼Ç¼¼¯ÔòÊǶÔÊý¾ÝµÄÁÐ
±íÐÍ·â×°¡£¼Ç¼¼¯ÖÐÖ»ÔÊÐíÓлù±¾Êý¾ÝÀàÐÍ¡£
µÚ¶þ²¿·Ö¾ÍÊÇΪÄÇЩʹÓ
Ïà¹ØÎĵµ£º
VS “XML Îĵµ” ˵Ã÷
1¡¢ÈçºÎÉú³É
£¨1£©¡¢ÔÚ Visual Studio ÖÐÉú³É“XML Îĵµ”ʾÀý
ÔÚ“½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷”ÖÐÓÒ»÷¸ÃÏîÄ¿£¬ÔÙµ¥»÷“ÊôÐÔ”¡£
´ò¿ª“ÅäÖÃÊôÐÔ”Îļþ¼Ð£¬È»ºóµ¥»÷“Éú³É”¡£
½«“XML ÎĵµÎļþ”ÊôÐÔÉèÖÃΪ XMLsample.xml¡£
Ô ......
Îĵµ¼°´úÂëÏÂÔØ£ºhttp://www.dingos.cn/index.php?topic=1899.0
½éÉÜ
µ±²Ëµ¥ÏîÊǾ³£¸Ä±äʱ£¬´ÓXMLÎĵµÖд´½¨TreeView²Åµ±ÊǷdz£ÓÐÓõġ£ÀýÈ磬ʹÓÃXML×÷ΪÊý¾Ý¿â´æ´¢¼Ç¼¡£
ÕâÀïÓиö¼òµ¥Ê¾Àý¡£ÒÔ·À»ìÏýÕâ¸öÀý×ӱȽϼòµ¥¡£
±³¾°
¶ÔXML¡¢TreeView¿Ø¼þµÄÓ¦Óã¬ÔÚVisual StudioÖÐÓÐÖúÓÚÀí½âÕâЩ²½Öè¡£
ʹÓôúÂë
×¢Òâ ......
×î½üÔÚ¹¤×÷ÖУ¬¾³£Éè¼Æ±¨±í£¨ireport+jasperReport£©·´¸´ºÍÉè¼ÆÄ£°åxml´ò½»µÀ£¬ÓÚÊǾÍÓÐÁËдÕâƪÎÄÕµÄÏë·¨ÁË¡£java²Ù×÷xmlÖ÷ÒªÊÇÓÐËÄÖÖ·½Ê½£ºdom£¬sax£¬jdom£¬dom4j¡£ÕâËÄÖÖ·½Ê½¸÷ÓÐÓÅȱµã£º£¨ÒÔϱȽÏÊÇÀ´×ÔÍøÂ磩
1£ºDOM4JÐÔÄÜ×îºÃ£¬Á¬SunµÄJAXMÒ²ÔÚÓÃDOM4J.Ä¿Ç°Ðí¶à¿ªÔ´ÏîÄ¿ÖдóÁ¿²ÉÓÃDOM4J£¬ÀýÈç´óÃû¶¦¶¦µÄHibernate ......
ºÍ & & amp;
µ¥
ÒýºÅ ' & apos;
Ë«Òý
ºÅ "   ......
´ó¶àÊýä¯ÀÀÆ÷¶¼ÄÚ½¨Á˹©¶ÁÈ¡ºÍ²Ù×÷ XML µÄ XML ½âÎöÆ÷¡£
½âÎöÆ÷°Ñ XML ת»»Îª JavaScript ¿É´æÈ¡µÄ¶ÔÏó¡£
µ«ÊÇIEºÍÆäËüä¯ÀÀÆ÷ÊÇÓкܴóÇø±ðµÄ
½âÎö XML Îļþ - ¿çä¯ÀÀÆ÷ʵÏÖ
<html>
<body>
<mce:script type="text/javascript"><!--
try //Õë¶ÔIEºÍ»ùÓÚIEÄں˵Ää¯ÀÀÆ÷
{
xmlD ......