Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Selecting single Element where Attribute = x [Thread Next] Re: Selecting single Element where Attribute = xTo: NULL Date: 7/6/2008 5:06:00 AM On Jul 6, 12:15=A0pm, Bjoern Hoehrmann <bjo...@hoehrmann.de> wrote:
> * hiv...@gmail.com wrote in microsoft.public.xml:
>
> >Dim doc As XmlDocument =3D New XmlDocument()
> >doc.Load("C:\Installation\install.xml")
> >Dim setnm As XmlNode
> >setnm =3D doc.SelectSingleNode("/Installations/Set[@Name=3D 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
>
> =A0 /Installations/Set[ @Name =3D 'Second' ]
> --
> Bj=F6rn H=F6hrmann =B7 mailto:bjo...@hoehrmann.de =B7http://bjoern.hoehrm=
ann.de
> Weinh. Str. 22 =B7 Telefon: +49(0)621/4309674 =B7http://www.bjoernsworld.=
de
> 68309 Mannheim =B7 PGP Pub. KeyID: 0xA4357E78 =B7http://www.websitedev.de=
/
---
You are quite right, thanks so much Bj=F6rn!
---
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
