I'm using org.w3c
XML API
to open an existing XML
file. I'm removing some nodes , and I'm adding others instead.
The problem is that the new nodes that are added are written one after the other, with no newline and no indentation what so ever. While it's true that the XML
file is valid , it is very hard for a human to examine it.
Is there anyway to add indentation , or at least a newline after each node?