Indentation to use with XML is different from JSON, because JSON requires use of separator characters and XML just basic whitespace.
Note that only a subset of methods of {@link PrettyPrinter} actuallyget called by {@link ToXmlGenerator}; because of this, implementation is bit briefer (and uglier...).
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.