ÇëÎÊ.netÈçºÎ¶ÁÈ¡xmlµÄÖµ
ÇëÎÊ.netÈçºÎ¶ÁÈ¡xmlµÄÖµ дµ½Êý¾Ý¿â Ï£Íû¸ø³öÍêÕûµÄ´úÂë лл
<?xml version="1.0" encoding="utf-8" ?>
- <channel>
- <item>
<userId>427 </userId>
<proId>2 </proId>
<proname>fsdfsd </proname>
<keywords>fsdfs </keywords>
<details>sdfsdfsf </details>
<picture />
<minorder>fsdfPiece/Pieces </minorder>
<fobprice>fsd~fsdfGBP </fobprice>
<port>sdfsd </port>
<payment>D/P </payment>
<deliverytime>sdf </deliverytime>
<supplyability>sdfPiece/Pieces per Day </supplyability>
<package>sdfsdfsd </package>
</item>
- <item>
<userId>427 </userId>
<proId>3 </proId>
<proname>fsd </proname>
<keywords>˵µÄ·½·¨ </keywords>
<details>ʱ´ú·¢ÉúµÄ·¢ </details>
<picture />
<minorder>312313Milligram </minorder>
<fobprice>3123~123USD </fobprice>
<port />
<payment>L/C,D/A, D/P,
Ïà¹ØÎÊ´ð£º
ÇëÎʸ÷λ´óʦ£¬ÎÒÏÖÔÚÐèÒª½«XMLµÄÊý¾ÝʵʱµÄ´æÈëµ½Êý¾Ý¿âÖУ¬ÎÒÊÇÓÃasp±àµÄ³ÌÐò£¬´óÁ¿ÃÇ°ïæ·ÖÎö һϣ¡£¡£¡
ÏÂÃæÊÇÎÒµÄXMLÎļþ´úÂë
XML code:
<?xml version="1.0" encoding="utf-8"? ......
ÎÒÒªÔÚHTMLÖÐÓÃJavaScript´úÂëÒì²½»ñÈ¡XMLÎļþÖÐÒ»¸ö½ÚµãµÄÖµ±ÈÈç
<?xml version="1.0" encoding="GB2312"?>
<configuration>
<appSettings>
......
RT
ÓÐûÓÐÔ´ÂëʵÀý£¡
лл£¡
²»ÊÇÓÐdom4jÕâÑùµÄ½âÎöxmlÎļþµÄ°üô ¸ÉÂï·ÇÒªÓÃÕýÔò£¿
Êܲ»ÁË£¡
òËƲ»ÐаÉ
ÓУ¬ºÃ¼¸¸öÄØ£¬DOM,jdom£¬dom4j¡£¡£
¹þ¹þ£¡
ÓÉÓÚÎÒµÄxml±àÂë¸ñʽÓеãÎÊÌ⣬² ......
ÎÒÉú³ÉµÄxmlÊÇÕâÑùµÄ
<?xml version="1.0"?>
<message>
<title>dd </title>
<content>ee </content>
</message>
дÁËÕâ ......