<?xml version="1.0" encoding="UTF-8"?>
<action>
<model name="listuser">
<first>wang</first>
<last>laohu</last>
<age>25</age>
<version>ÖйúÓʵç³ö°æÉç</version& ......
test.xmlÎļþÄÚÈÝ£º
<?xml version="1.0" encoding="UTF-8"?>
<RESULT>
<VALUE>
¡¡¡¡ <NO>A1234</NO>
¡¡¡¡ <ADDR>ËÄ´¨Ê¡XXÏØXXÕòXX·X¶ÎXXºÅ</ADDR>
</VALUE>
<VALUE>
¡¡¡¡ <NO&g ......
c#Ôõô°ÑxmlÎļþÀïËùÓеÄ×Ö·û¶¼¶Á³öÀ´£¬°üÀ¨Í·²¿´úÂ룡
лл
ÎÒÒ²ÏëÖªµÀ ¸úÂ¥Ö÷Ò»Æðѧϰ
xmldocument doc;
doc.load();
»òÓÃÎļþÁ÷À´¶Á£¬
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(Server.MapPath(path));
XmlReader
ÈýÂ¥Äܲ»ÄÜ˵Ïêϸµã£¬ÎÒÐèÒª¶Á³öÀ´ºó°ÑËûÏÔʾÔÚtex ......
webservice ¸øÎÒÒ»¸ö µØÖ·£º
http://www.xxxxxxxxxxxxxxx.aspx?...
Ö±½ÓÔÚä¯ÀÀÆ÷ÊäÈëÕâ¸öµØÖ· £¬ ÏÔʾµÄÊÇXML¡£
ÎÒÏÖÔÚÏ£ÍûÓÃÎÒ×Ô¼ºµÄPHPÀï°ÑÕâ¸öXMLÊä³öÀ´£¬Ôõô°ì°¡£¿
ÎÒÈç¹ûÕâÑù£º
header("Content-Type: application/xml");
print(http://www.xxxxxxxxxxxxxxx.aspx?...);
È´»¹ÊÇÎÞ·¨Êä³öÄǸöXML£¬Fire ......
ÏÖÔÚÐèҪͨ¹ýschemaУÑéÒ»¸öxmlÎļþ£º
¼ÙÉèxmlÎļþÈçÏÂ
<root>
<a></a>
<b></b>
<c></c>
<d></d>
<d></d>
</root>
È»ºóÒªÇóÔªËØa£¬b£¬c¿ÉÒÔÒÔÈÎÒâ˳Ðò³öÏÖ£¬×î¶à³öÏÖÒ»´Î£»ÔªËØd³öÏÖÔÚa£¬b£¬cÖ ......
ÎÒÓÒ¼üÏîÄ¿Ìí¼ÓÁËÒ»¸öxmlÎļþa.xml
È»ºóÔÚ´úÂëÀïÃæд
xmlDoc.Load("a.xml");
ÔËÐб¨´í˵·¾¶²»¶Ô¡£
ÒòΪµ÷ÊÔµÄʱºòÉú³ÉÁ˲âÊÔÎļþÔÚbin Îļþ¼ÐµÄdebugÎļþÀïÃæ¡£
ÄÇôÎÒÒªÔõô²ÅÄÜÕýÈ·µÄ¶ÁÈ¡µ½Õâ¸öxml ÎļþÄØ£¿£¿
xmlDoc.Load(Application.StartPath + "\\a.xml"); ......