Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: ASP: Cannot read the attributes of my XML file (can read the tags) [Thread Next] Re: ASP: Cannot read the attributes of my XML file (can read the tags)To: NULL Date: 2/8/2008 7:29:00 AM On Feb 8, 2:19 pm, Martin Honnen <mahotr...@yahoo.de> wrote: > zzapper wrote: > > What is the equivalent of > > address_address_1 = > > objXML.documentElement.childNodes(1).childNodes(1).text > > > using the node names eg address & address_1 instead of numerical > > indexes? > > You can use XPath > objXML.setProperty "SelectionLanguage", "XPath" > objXML.documentElement.selectSingleNode("address/address_1").text > > I have not checked whether that XPath fits your sample XML posted > earlier but you should get the idea. > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ Martin, Thanks that worked, didn't stop me using the numerical indexing either zzapper | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
