ɾ³ýxml½Úµã²Ù×÷ÎÊÌâ
´ÓxmlÎļþÖÐɾ³ýÖ¸¶¨µÄ½Úµã£¬ÎÊÌâÊǶà´Îɾ³ý²Ù×÷Ö»ÓÐ×îºóÒ»´Îɾ³ý²Ù×÷²ÅÊÇÕæÕýÖ´Ðеģ¬ÎÊÏ´úÂëÄÄÀïÓÐÎÊÌ⣿
XML code:
<?xml version="1.0" encoding="UTF-8"?>
<ip-config>
<ip>
<host>221.214.208.17</host>
<port>3128</port>
</ip>
<ip>
<host>222.76.210.8</host>
<port>8080</port>
</ip>
<ip>
<host>222.89.92.106</host>
<port>3128</port>
</ip>
<ip>
<host>218.90.171.249</host>
<port>8080</port>
</ip>
<ip>
<host>218.201.21.177</host>
<port>80</port>
</ip>
<ip>
<host>221.130.13.39</host>
<port>80</port>
</ip>
<ip>
<host>221.130.13.37</host>
<port>80</port>
</ip>
<ip>
<host>221.130.13.232</host>
<port>80</port>
</ip>
<ip>
<host>221.130.13.228</host>
<port>80</port>
</ip>
<ip>
<host>221.130.13.42</host>
<port>80</port>
&
Ïà¹ØÎÊ´ð£º
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÄÚÈÝÈçÌâ¡£¡£ÔÚC#Àï¸ÄÈçºÎÐ´ÄØ£¿
±¾À´Ë¼Â·ÊÇÏȱȶԽڵãÃû³Æ£¬ÈçÊǵϰ¾Í±£´æÒªÉ¾³ý½ÚµãµÄϱê·ÅÔÚÊý×éÀȻºóÑ»·É¾³ý£¬µ«·¢ÏÖ¡£¡£µ±ÎÒɾ³ýµÚÒ»¸öºó£¬ËùÓнڵãϱêÊýÁ¿¶¼·¢Éú¸Ä±ä¡£¡£
¾Í²»ÄÜÔÙ°´ÕÕ֮ǰ¼Í¼µÄ½Úµã ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ÎÒÏÖÔÚÓÐÒ»¸öXML¶ÔÏó
var merxml
merxml ±£´æµÄÄÚÈÝ ÊÇ
<root>
<a>a</a>
<b>b</b>
</root>
ÎÒÏÖÔÚµÄÄ¿µÄÊÇÒª°Ñ merxml Õâ¸öXML¶ÔÏó ÍêÕûµÄÊä³öµ½Ò»¸öÎı¾¿ò tx ......