Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XPath query help with getting parent nodes [Thread Next] Re: XPath query help with getting parent nodesTo: NULL Date: 1/5/2007 7:33:00 AM Thanks, I was dancing all around it. the nested [] is what was tripping me up. Martin Honnen wrote: > 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 | |||
|
