public static void prettyPrintXML(final InputStream inputStream, final OutputStream outputStream) {
        final Reader reader = new InputStreamReader(inputStream, StreamUtil.DEFAULT_CHARSET);
        final Writer writer = new OutputStreamWriter(outputStream, StreamUtil.DEFAULT_CHARSET);

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