Write an xml file from the specified node?
Posted
by Googler
on Stack Overflow
See other posts from Stack Overflow
or by Googler
Published on 2010-04-28T13:54:37Z
Indexed on
2010/04/28
14:03 UTC
Read the original article
Hit count: 215
Xml
Hi all,
This is my xml file
Input:
<world>
<patent>
<xml>a</xml>
<java>333</java>
<jaxb>111</jaxb>
</patent>
</world>
I need the read the above xml file and reproduce the following the output
Output:
<patent>
<xml>a</xml>
<java>333</java>
<jaxb>111</jaxb>
</patent>
I dont need the world element. How to achieve this using Xpath. Can anyone help me on this?
© Stack Overflow or respective owner