Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Selecting single Element where Attribute = x

From: hivdb2@-----.---
To: 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!

---


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent