I have an XML document, and I want to print the tag names and values (of leaf nodes) of all tags in the document. For example, for the XML:
<library> <bookrack> ...
Is there any way to print empty elements like <tag></tag> rather than <tag /> using org.w3c.dom? I'm modifying XML files that need to be diff'ed against old versions of themselves for ...
<tag></tag>
<tag />