I need to pull items out of an XML feed.
Here is an example of the XML file:
- <TopNode>
- <XmlFeed>
- <GetListInCateg ory>
- <Data Count="937">
- <Table>
<EventID>567343 </EventID>
<Event>NHL playoffs</Event>
<Date>2007-04-21T00:00:00.000 0000-05:00</Date>
<Time>10:00 PM</Time>
<CategoryID>2 6</CategoryID>
<HeadlinerID>10 1828</HeadlinerID>
<VenueID>115920 </VenueID>
</Table>
</data>
</GetListInCatego ry>
</TopNode>
I need to pull each item out of the <TABLEnode, such as
<CategoryID>. The current code I am using now pulls ALL the data but
I cannot access the invidual elements.
Here is my current code:
dim objHTTP
dim objXML
set objHTTP = Server.CreateOb ject("Microsoft .XMLHTTP")
objHTTP.open "GET","http s://secure.myxmlfee d", false
objHTTP.send
set objXML = server.CreateOb ject("microsoft .xmldom")
objXML.async=fa lse
objXML.load(obj http.responsebo dy)
Response.Write( objxml.xml)
Can anyone tell me how to do this?
- Steve
Here is an example of the XML file:
- <TopNode>
- <XmlFeed>
- <GetListInCateg ory>
- <Data Count="937">
- <Table>
<EventID>567343 </EventID>
<Event>NHL playoffs</Event>
<Date>2007-04-21T00:00:00.000 0000-05:00</Date>
<Time>10:00 PM</Time>
<CategoryID>2 6</CategoryID>
<HeadlinerID>10 1828</HeadlinerID>
<VenueID>115920 </VenueID>
</Table>
</data>
</GetListInCatego ry>
</TopNode>
I need to pull each item out of the <TABLEnode, such as
<CategoryID>. The current code I am using now pulls ALL the data but
I cannot access the invidual elements.
Here is my current code:
dim objHTTP
dim objXML
set objHTTP = Server.CreateOb ject("Microsoft .XMLHTTP")
objHTTP.open "GET","http s://secure.myxmlfee d", false
objHTTP.send
set objXML = server.CreateOb ject("microsoft .xmldom")
objXML.async=fa lse
objXML.load(obj http.responsebo dy)
Response.Write( objxml.xml)
Can anyone tell me how to do this?
- Steve
Comment