Package org.htmlcleaner
Class DomBuilder
java.lang.Object
org.htmlcleaner.DomBuilder
- All Implemented Interfaces:
XmlVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionDomBuilder(CleanerProperties props, boolean escapeXml, boolean deserializeCdataEntities, boolean strictErrorChecking) -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentcreateDocument(TagNode rootNode) protected StringdeserializeCdataEntities(String input) voidCallback for when a node is first visited.voidCallback for when a node is last visited, after all of its descendants have been visited.
-
Field Details
-
escapeXml
protected boolean escapeXml -
deserializeCdataEntities
protected boolean deserializeCdataEntities -
strictErrorChecking
protected boolean strictErrorChecking
-
-
Constructor Details
-
DomBuilder
public DomBuilder(CleanerProperties props, boolean escapeXml, boolean deserializeCdataEntities, boolean strictErrorChecking)
-
-
Method Details
-
getDocument
-
head
Description copied from interface:XmlVisitorCallback for when a node is first visited.- Specified by:
headin interfaceXmlVisitor- Parameters:
node- the node being visited.depth- the depth of the node, relative to the root node. E.g., the root node has depth 0, and a child node of that will have depth 1.
-
deserializeCdataEntities
-
tail
Description copied from interface:XmlVisitorCallback for when a node is last visited, after all of its descendants have been visited.- Specified by:
tailin interfaceXmlVisitor- Parameters:
node- the node being visited.depth- the depth of the node, relative to the root node. E.g., the root node has depth 0, and a child node of that will have depth 1.
-
createDocument
- Throws:
ParserConfigurationException
-