I need to generate a NodeList that represents the entire sub-tree (including attributes, comments, and namespace declarations) of a given Node in my Document.
Let's assume my document looked like this:
Hi, I need to make an application in which on click of a button an xml is displayed on the browser. Now when a user selects a node in the xml then i need the xpath of the selected node for some processing. How to retrieve the xpath. I am using Struts framework.