XML¶ÁÈ¡ÎÊÌâ - Web ¿ª·¢ / ASP
<?xml version="1.0" encoding="UTF-8" ?>
<list version="3.0">
<title>title</title>
<book>
<type>
<id>1022</msgid>
<name>66</name>
</type>
......
<type>
<id>1023</id>
<name>77</name>
</type>
</book>
</list>
¶ÁÈ¡£º
Set XML = Server.CreateObject ("Microsoft.XMLDOM")
xml.async = False
xml.Load Request
set root=xml.documentElement
title= root.childNodes.item(0).text
Set oXMLItems = root.selectNodes("book")
oXMLtype=oXMLItems(0).selectNodes("type")
iLength = oXMLtype.length - 1
For i = 0 To iLength
Set oXMLItem = oXMLmessages.item(i)
id= oXMLItem.getAttribute("id")
name= oXMLItem.getAttribute("name")
Next
¸ßÊÖÖ¸µã´íÔÚÄÄ°¡¡£¡£¡£
<?xml version="1.0" encoding="UTF-8" ?>
<list version="3.0">
<title>title</title>
<book>
<type>
<id>1022</msgid>
<name>66</name>
Ïà¹ØÎÊ´ð£º
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>Õâ¸öÊǺº×Ö</msg>
<serialno>123</serialno>
</root>
ÈçºÎÓÃASP¶ÁÈ¡ statusÖµ ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
xmlÎļþ¸ñʽÈçÏÂ
XML code:
<?xml version="1.0" encoding="GB2312" ?>
<allproducts version="1.0">
<products>
<product name="prodId&quo ......
¹¦ÄÜ˵Ã÷:Java servlet °ÑXMLÊý¾ÝѹËõºó·¢Ë͵½PBÓû§¶Ë,PBÊÕµ½Êý¾Ýºó½âѹ³öÀ´.
´«ÊäÒª¾¹ýBase64±àÂë.
ÎÊÌâÊÇ:ÄÜÊÕµ½Êý¾Ýµ«Êǽâѹ²»³öÀ´.ÏëÇë½Ì´ó¼Ò»òÕßÓÐʲôºÃµÄ°ì·¨?
PB¿ÉÒÔÓÃ"zlibwapi.DLL" ½âѹ
......