public class XWikiDOMSerializer
Generate a W3C Document from a SF's HTML Cleaner TagNode.
Some code has been copy-pasted from SF's HTML Cleaner code (which is under a BDS license, see
http://htmlcleaner.sourceforge.net/license.php). Our goal is to remove this class completely if we can get SF's HTML
Cleaner to support the usage of a dedicated builder.
Here's the reason why we want to be able to give a dedicated builder:
Note that creating the DocumentBuilder is not super fast but it's specifically more about the DocumentBuilderFactory
creation mainly because it's blocking all the threads which are doing stuff implying loading a class from the
classloader making it an important lock contention. I modified its behavior (and other similar tasks) after noticing
that there was often a bunch of threads waiting for this kind of lock.
Note: Even though in a public package this code is not meant to be a public API. We've had to put in under the org.htmlcleaner package because we use the following package protected API: TagNode#getNamespaceURIOnPath(String).
$Id: c6abd3fc60b8bc8eb311173c6eb89bf8924ebef9 $
Fields inherited from class org.htmlcleaner.DomSerializer