Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xpath to select all the elements in XML with one exception only >Thread Next - Re: xpath to select all the elements in XML with one exception only Re: xpath to select all the elements in XML with one exception onlyTo: NULL Date: 2/7/2008 3:38:00 AM On Feb 7, 12:28 pm, Oleg Tkachenko <m...@be.next> wrote: > khalil...@hotmail.com wrote: > > Hi > > > I need an efficient xpath 2.0 expressions to apply it to the following > > input xml > > > <tag1> > > <tag2> > > ......... many elements here > > </tag2> > > <tag3> > > <tag4> a number here</tag4> > > ......... many elements here > > </tag3> > > <tag3> > > <tag4> > a number here </tag4> > > ......... many elements here > > </tag3> > > ..... many tag3 elements here > > </tag1> > > > I need to get all the data in that xml except for the tag3 elements I > > need to choose just one whose <tag4> value is equal to a certain value > > > Thanks > > > Mahmoud > > It's not clear what do you mean. Provide desired result please. > > -- > Oleg- Hide quoted text - > > - Show quoted text - If the input xml is: <tag1> <tag2> ......... many elements here </tag2> <tag3> <tag4> 5</tag4> ......... many elements here </tag3> <tag3> <tag4> > 7 </tag4> ......... many elements here </tag3> ..... many tag3 elements here </tag1> And I want to choose the tage3 whose tag4 is 7 then the desired output is: <tag1> <tag2> ......... many elements here </tag2> <tag3> <tag4> > 7 </tag4> ......... many elements here </tag3> </tag1> thanks Mahmoud | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
