How can I select a specific node with a unique identifier and return the entire node as xml.
<xml> <library> <book id='1'> <title>firstTitle</title> <author>firstAuthor</author> </book> <book id='2'> <title>secondTitle</title> <author>secondAuthor</author> </book> <book id='3'> <title>thirdTitle</title> <author>thirdAuthor</author> </book> </library> </xml>
In this case, I would like to return the book with id = '3', so it will look something like this:
<book id='3'> <title>thirdTitle</title> <author>thirdAuthor</author> </book>
source share