Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xpath question >Thread Next - Re: xpath question Re: xpath questionTo: NULL Date: 4/12/2007 4:43:00 PM 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 | |||
|
