public static String prettyPrintXML(final String xml) {
        final Reader reader = new StringReader(xml);
        final Writer writer = new StringWriter(1000);

        prettyPrintXML(reader, writer);

        return writer.toString();
    }
Convert a java type into a xml name E.g. XMLType = "xmlType", String =
"string", StringBIG = "StringBIG"
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/XMLUtil.java