Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Please Help Me! ASP ~ XML Please Help Me! ASP ~ XMLTo: NULL Date: 10/2/2004 3:03:00 AM Hi,
I know virtually nothing about XML, and am trying to make someone
else's code work now that the XML data we're using has changed.
The ASP being used to grab the XML is:
set xmlHTTP = server.CreateObject("Msxml2.SERVERXMLHTTP")
xmlHTTP.Open "GET", XMLURL, false
xmlHTTP.Send(Now)
set xmlDoc = xmlHTTP.responseXML
The XML file looks something like this:
<ProductInfo>
<ListingIDs>
<ID>9392</ID>
<ID>9393</ID>
<ID>9394</ID>
<ID>9395</ID>
<ID>9396</ID>
</ListingIDs>
</ProductInfo>
If I do:
set theIDs = xmlDoc.SelectNodes("//ProductInfo/ListingIDs")
it gives me all the <ID> tags combined into one. That is, theIDs
contains all of the <ID> tags.
I've tried using a "for each" loop to get them out one by one, but I
can't figure out how to make it work.
Can someone please, please, please help?
Thanks!
-Sarah
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
