不好意思,没有表述清楚,这样的,假设有下面的数据
<?xml version="1.0" encoding="UTF-8" ?>
- <root xmlns:ns2="http://us.service.lrd.org.cn">
- <AccountInfo>
<Code>3821</Code>
<Name>xx分公司1</Name>
<periodName>DEC-10</periodName>
</AccountInfo>
- <AccountInfo>
<Code>3822</Code>
<Name> xx分公司2</Name>
<periodName>DEC-10</periodName>
</AccountInfo>
- <AccountInfo>
<Code>3823</Code>
<Name> xx分公司3</Name>
<periodName>DEC-10</periodName>
</AccountInfo>
</root>
我需要将上面得到的数据用数组取出来,得到下面的结果
e.Form.Controls("Label1").Text='3821' e.Form.Controls("Label2").Text='xx分公司1' e.Form.Controls("Label3").Text='DEC-10'
e.Form.Controls("Label4").Text='3822' e.Form.Controls("Label5").Text='xx分公司2' e.Form.Controls("Label6").Text='DEC-10'
e.Form.Controls("Label7").Text='3823' e.Form.Controls("Label8").Text='xx分公司3' e.Form.Controls("Label9").Text='DEC-10'
那么这后面的语句该如何写呢:
Dim strXML As String = Functions.Execute("getXML","http://10.xxx.x.xxx:8080/cfmSoa_client/accountInfo/getAccountInfoList?")
Dim xmlDoc As New System.XML.XmlDocument
xmlDoc.LoadXml(strXML)
[此贴子已经被作者于2013-12-31 14:43:12编辑过]