src/main/java/com/rockagen/commons/util/XmlUtil.java
public static String formatPretty(String xmlStr, String enc) {
        return formatPretty(xmlStr, enc, false);
    }
public static String formatPretty(String xmlStr, String enc) {
        return formatPretty(xmlStr, enc, false);
    }
public static String formatPretty ( String xmlStr , String enc ) { return formatPretty ( xmlStr , enc , false ) ; }
Format xml {@link OutputFormat#createPrettyPrint()}

@param xmlStr xml String
@param enc    encoding
@return pretty String
Format xml { @link OutputFormat#createPrettyPrint () }