XOM.nu settings close tags format

98 Views Asked by At

How can I set uп Xom.nu in such a way that elements are closed like so:

<Node></Nodes> and not <Node/>.

The reason why I want to do it in this way is that this XML is going to be imported into a tool which, unfortunately recognizes the former "close tag convention".

1

There are 1 best solutions below

1
On BEST ANSWER

XOM is a pretty bare-bones API, it doesn't provide this level of fine control. The JDOM API, on the other hand, does do this, via its Format class, which allows you to tightly control output formatting, including non-collapsing of empty elements.