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 nodes Re: XPath query help with getting parent nodesTo: NULL Date: 1/5/2007 4:24:00 PM mike@p... wrote: > 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' > I have //ExtractInfo/Record[Status='UnProcessed' or > Status='Queued']/Field[Fieldname='ChangeType' and Value='SN'] but that > gets the field nodes, I need the record nodes. //ExtractInfo/Record[ Status='UnProcessed' or Status='Queued' and Field[Fieldname='ChangeType' and Value='SN']] -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
