org.xwiki.xml.internal.html
Class XWikiDOMSerializer

java.lang.Object
  extended by org.xwiki.xml.internal.html.XWikiDOMSerializer

public class XWikiDOMSerializer
extends java.lang.Object

Generate a W3C Document from a SF's HTML Cleaner TagNode. Original implementation by Vladimir Nikic, under the BSD license (see http://htmlcleaner.sourceforge.net/license.php). Modified to bypass following bugs:

Since:
1.8.2
Version:
$Id$

Constructor Summary
XWikiDOMSerializer(org.htmlcleaner.CleanerProperties props, boolean escapeXml)
           
 
Method Summary
 org.w3c.dom.Document createDOM(org.htmlcleaner.TagNode rootNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWikiDOMSerializer

public XWikiDOMSerializer(org.htmlcleaner.CleanerProperties props,
                          boolean escapeXml)
Parameters:
props - the HTML Cleaner properties set by the user to control the HTML cleaning.
escapeXml - if true then escape XML entities
Method Detail

createDOM

public org.w3c.dom.Document createDOM(org.htmlcleaner.TagNode rootNode)
                               throws javax.xml.parsers.ParserConfigurationException
Parameters:
rootNode - the HTML Cleaner root node to serialize
Returns:
the W3C Document object
Throws:
javax.xml.parsers.ParserConfigurationException - if there's an error during serialization


Copyright © 2004-2011 XWiki. All Rights Reserved.