Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xpath question [Thread Next] Re: xpath questionTo: NULL Date: 4/12/2007 4:51:00 PM Thanks Martin "Martin Honnen" <mahotrash@y...> wrote in message news:umEJwDRfHHA.4652@T...... > bg wrote: > >> <root> >> <thing type='cow'> Ermintrud </thing> >> <thing> Mickey </thing> >> <thing type='cat'> Thomas </thing> >> <thing> Arnold </thing> >> </root> >> >> How can I get all the nodes that don't have a type attribute? > > /root/thing[not(@type)] > selects the thing child elements under the root element which do not have > a type attribute. > If you want all elements not having a type attribute then use e.g. > //*[not(@type)] > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
