I am parsing a XML file in Java using the W3C DOM. I am stuck at a specific problem, I can\'t figure out how to get the whole inner XML of a node.
The node looks lik
I know this was asked long ago but for the next person searching (was me today), this works with JDOM:
JDOMXPath xpath = new JDOMXPath("/td");
String innerXml = (new XMLOutputter()).outputString(xpath.selectNodes(document));
This passes a list of all child nodes into outputString, which will serialize them out in order.