org.htmlcleaner
Class BrowserCompactXmlSerializer
java.lang.Object
org.htmlcleaner.Serializer
org.htmlcleaner.XmlSerializer
org.htmlcleaner.BrowserCompactXmlSerializer
public class BrowserCompactXmlSerializer
- extends XmlSerializer
Browser 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 usually treat multiple whitespaces as single one, but make difference
between single whitespace and empty text.
Methods inherited from class org.htmlcleaner.XmlSerializer |
dontEscape, escapeXml, getXmlAsString, getXmlAsString, isCreatingHtmlDom, isForbiddenAttribute, isForbiddenTag, isHeadOrBody, isMinimizedTagSyntax, serializeAttribute, serializeCData, serializeContentToken, serializeEndTag, serializeEndTag, serializeOpenTag, serializeOpenTag, setCreatingHtmlDom, writeXml, writeXmlToFile, writeXmlToFile, writeXmlToStream, writeXmlToStream |
Methods inherited from class org.htmlcleaner.Serializer |
getAsString, getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserCompactXmlSerializer
public BrowserCompactXmlSerializer(CleanerProperties props)
serialize
protected void serialize(TagNode tagNode,
Writer writer)
throws IOException
- Specified by:
serialize
in class Serializer
- Throws:
IOException
Copyright © 2006-2014. All Rights Reserved.