Package org.assertj.core.util.xml
Class XmlStringPrettyFormatter
java.lang.Object
org.assertj.core.util.xml.XmlStringPrettyFormatter
Format an XML String with indent = 2 space.
Very much inspired by http://stackoverflow.com/questions/139076/how-to-pretty-print-xml-from-java and http://pastebin.com/XL7932aC
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
prettyFormat
(Document document, boolean keepXmlDeclaration) private static Document
toXmlDocument
(String xmlString) static String
xmlPrettyFormat
(String xmlStringToFormat)
-
Field Details
-
FORMAT_ERROR
- See Also:
-
-
Constructor Details
-
XmlStringPrettyFormatter
private XmlStringPrettyFormatter()
-
-
Method Details
-
xmlPrettyFormat
-
prettyFormat
-
toXmlDocument
-