Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xpath to select all nodes under document root [Thread Next] Re: xpath to select all nodes under document rootTo: NULL Date: 10/2/2007 10:59:00 PM /*/Category assuming Category elements are children of the document element or /*/* selects the child elements of the document element or //Category is an inefficient search but grabs any category element, whatever level it is. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name "eggie5" <eggie5@g...> wrote in message news:1191351957.976115.230660@y...... > All I want to do is select all the nodes under the docment root. e.g: > > <?xml version="1.0" encoding="UTF-8"?> > <Categories> > <Category> > <content_provider_id type="integer">1</content_provider_id> > <id type="integer">2</id> > <name>Traffic Alerts</name> > </Category> > <Category> > <content_provider_id type="integer">1</content_provider_id> > <id type="integer">1</id> > <name>News Alerts</name> > </Category> > <Category> > <content_provider_id type="integer">1</content_provider_id> > <id type="integer">3</id> > <name>testing category</name> > </Category> > </Categories> > > > What xpath would return all the Category nodes? But I don't want it to > be specific to this xml file > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
