Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XPath query help with getting parent nodes [Thread Next] Re: XPath query help with getting parent nodesTo: NULL Date: 1/5/2007 4:30:00 PM
* mike@p... wrote in comp.text.xml:
>I am new to XPATH and am having a hard time selecting some nodes.
>I want to select all the record nodes where Status = 'Unprocessed' or
>'Queued' (that part I can get) but additionally I only want the ones
>where the Field/Fieldname ='ChangeType' and Field/Value = 'SN'
You have to formulate these extra conditions as predicates like so:
//Record[ (Status = 'UnProcessed' or Status = 'Queued') and
Field[Fieldname = 'ChangeType' and Value = 'SN'] ]
--
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 | |||
|
