public class XMLUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
INDENT_NUMBER |
static java.util.List<IXMLPrettyPrinter> |
PRINTERS |
| Constructor and Description |
|---|
XMLUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
prettyPrint(java.lang.String xml)
Indent the given xml with the 4 indentation.
|
static java.lang.String |
prettyPrint(java.lang.String xml,
int indent)
Indent the given xml with the given indent number.
|
static org.xml.sax.helpers.AttributesImpl |
toAttributesImpl(org.xml.sax.Attributes attributes)
Get the SAX
AttributesImpl of teh given attributes to modify attribute values. |
public static final java.lang.Integer INDENT_NUMBER
public static final java.util.List<IXMLPrettyPrinter> PRINTERS
public static java.lang.String prettyPrint(java.lang.String xml)
xml - XML to indentjava.lang.Exceptionpublic static java.lang.String prettyPrint(java.lang.String xml,
int indent)
xml - XML to indentindent - the indent number.java.lang.Exceptionpublic static org.xml.sax.helpers.AttributesImpl toAttributesImpl(org.xml.sax.Attributes attributes)
AttributesImpl of teh given attributes to modify attribute values.attributes - Copyright © 2019. All Rights Reserved.