XPATH: select subset of xml file

Posted by Ray on Stack Overflow See other posts from Stack Overflow or by Ray
Published on 2010-05-29T12:46:46Z Indexed on 2010/05/29 12:52 UTC
Read the original article Hit count: 270

Filed under:
|

In my case, I have:

......

How can i just return:

if I use /booklist/book[@id=1], I can only get But I also need the root element. Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml