Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Navigating XML >Thread Next - Re: Navigating XML Re: Navigating XMLTo: NULL Date: 8/3/2006 9:27:00 PM requeth@g... wrote: > step down through them, inside of a heirarchy record, and see if any > are G2's (since sometimes one may not be listed at all). How do I do > this? Well, you could for-each and test, but the more standard solution would be to make a single XPath do all the work: CMS27423400_2140CA/CMS27423400_2140CA_REF_ProviderIdentificationNumbers[@CMS27423400_2140CA_REF01_ReferenceIdentificationQualifier="SY"] or, to put it on more readable terms, path/to/some_element[@some_attribute="desired value"] This returns all the elements which match the path (relative to your current context) and which have the specified attribute set to the desired value. See your favorite XPath/XSLT tutorial's section on "predicate expressions" to learn more about this approach. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
