Package com.norconex.commons.lang.xml
Class XmlFormatter
java.lang.Object
com.norconex.commons.lang.xml.XmlFormatter
Simple XML Formatter. This formatter may not fully respect all XML
specifications and may impact how the original XML would normally be parsed.
If this is important to you to preserve everything
(white spaces, CDATA, etc), you should use a different
formatter. It is not optimized for memory (affected by very large
tag content only).
It is intended for formatting simple XML for human consumption. It supports
XML with no root or the formatting of attributes only.
- Since:
- 2.0.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
XmlFormatter
public XmlFormatter()
-
-
Method Details
-
format
-
format
-
format
- Throws:
IOException
-
builder
Gets an XML formatter builder.- Returns:
- builder
-