Package org.assertj.core.util.xml
Class XmlStringPrettyFormatter
- java.lang.Object
-
- org.assertj.core.util.xml.XmlStringPrettyFormatter
-
public class XmlStringPrettyFormatter extends Object
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 Modifier and Type Field Description private static String
FORMAT_ERROR
-
Constructor Summary
Constructors Modifier Constructor Description private
XmlStringPrettyFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static String
prettyFormat(Document document, boolean keepXmlDeclaration)
private static Document
toXmlDocument(String xmlString)
static String
xmlPrettyFormat(String xmlStringToFormat)
-
-
-
Field Detail
-
FORMAT_ERROR
private static final String FORMAT_ERROR
- See Also:
- Constant Field Values
-
-