Class XMLUtils
java.lang.Object
fr.opensagres.xdocreport.core.utils.XMLUtils
XML Utilities to indent XML.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringprettyPrint(String xml) Indent the given xml with the 4 indentation.static StringprettyPrint(String xml, int indent) Indent the given xml with the given indent number.static AttributesImpltoAttributesImpl(Attributes attributes) Get the SAXAttributesImplof teh given attributes to modify attribute values.
-
Field Details
-
INDENT_NUMBER
-
PRINTERS
-
-
Constructor Details
-
XMLUtils
public XMLUtils()
-
-
Method Details
-
prettyPrint
Indent the given xml with the 4 indentation.- Parameters:
xml- XML to indent- Returns:
- Throws:
Exception
-
prettyPrint
Indent the given xml with the given indent number.- Parameters:
xml- XML to indentindent- the indent number.- Returns:
- Throws:
Exception
-
toAttributesImpl
Get the SAXAttributesImplof teh given attributes to modify attribute values.- Parameters:
attributes-- Returns:
-