Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Selecting single Element where Attribute = x >Thread Next - Re: Selecting single Element where Attribute = x Re: Selecting single Element where Attribute = xTo: NULL Date: 7/6/2008 12:16:00 PM
* hivdb2@g... wrote in microsoft.public.xml:
>Dim doc As XmlDocument = New XmlDocument()
>doc.Load("C:\Installation\install.xml")
>Dim setnm As XmlNode
>setnm = doc.SelectSingleNode("/Installations/Set[@Name= Second ]")
This selects Set elements whose 'Name' attribute has the same value as
the 'Second' child element, if you want to compare against the literal
string 'Second' you have to quite the value, as in
/Installations/Set[ @Name = 'Second' ]
--
Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
