MartinT
05-14-2003, 04:11 PM
I got a simple xml file
<root>
<cat>
<id>0</id>
<value>white</value>
<details>...</details>
</cat>
<cat>
<id>1</id>
<value>black</value>
<details>...</details>
</cat>
</root>
I need an xpath that will select only the id and value node
the output should like this:
<root>
<cat>
<id>0</id>
<value>white</value>
</cat>
<cat>
<id>1</id>
<value>black</value>
</cat>
</root>
Anyone can help ?
<root>
<cat>
<id>0</id>
<value>white</value>
<details>...</details>
</cat>
<cat>
<id>1</id>
<value>black</value>
<details>...</details>
</cat>
</root>
I need an xpath that will select only the id and value node
the output should like this:
<root>
<cat>
<id>0</id>
<value>white</value>
</cat>
<cat>
<id>1</id>
<value>black</value>
</cat>
</root>
Anyone can help ?