I have an XML doc
In VBScript I need to know how to loop through the XML and return the data to the user. Here is my code that I cannot get to work.
Any help would be greatly appreciated.
Code:
- <Permit_Table>
- <Row>
<PermitType2>EX LNTH/EX WGT</PermitType2>
<PermitNumber>06013620</PermitNumber>
<ExpireDate>01/01/2007</ExpireDate>
<PermitType>ANNUAL</PermitType>
<PermitValid>VALID</PermitValid>
</Row>
- <Row>
<PermitType2>EX LNTH/EX WGT</PermitType2>
<PermitNumber>11234</PermitNumber>
<ExpireDate>01/01/2008</ExpireDate>
<PermitType>ANNUAL</PermitType>
<PermitValid>VALID</PermitValid>
</Row>
</Permit_Table>
In VBScript I need to know how to loop through the XML and return the data to the user. Here is my code that I cannot get to work.
Code:
set retString = Server.CreateObject("MSXML2.DOMDocument")
set sPermitNum = retString.selectNodes("/ScreenOutputs/Permit_Table/Row")
Dim i
For i = 0 To sPermitNum.Count - 1
Response.Write(sPermitNum.ItemOf(i).InnerXml)
Next
Any help would be greatly appreciated.