public class BrowserCompactXmlSerializer extends XmlSerializer
Broswer compact XML serializer - creates resulting XML by stripping whitespaces wherever possible, but preserving single whitespace where at least one exists. This behaviour is well suited for web-browsers, which usualy treat multiple whitespaces as single one, but make diffrence between single whitespace and empty text.
props| Constructor and Description |
|---|
BrowserCompactXmlSerializer(CleanerProperties props) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
serialize(TagNode tagNode,
Writer writer) |
dontEscape, escapeXml, getXmlAsString, getXmlAsString, isMinimizedTagSyntax, serializeEndTag, serializeOpenTag, writeXml, writeXmlToFile, writeXmlToFile, writeXmlToStream, writeXmlToStreamgetAsString, getAsString, getAsString, getAsString, isScriptOrStyle, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStreampublic BrowserCompactXmlSerializer(CleanerProperties props)
protected void serialize(TagNode tagNode, Writer writer) throws IOException
serialize in class SerializerIOExceptionCopyright © 2006–2017. All rights reserved.