E
eggie5
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.
<?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.