public class W3CDom
extends java.lang.Object
Document to a org.w3c.dom.Document,
for integration with toolsets that use the W3C DOM.| Modifier and Type | Class and Description |
|---|---|
protected static class |
W3CDom.W3CBuilder
Implements the conversion by walking the input.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.xml.parsers.DocumentBuilderFactory |
factory |
| Constructor and Description |
|---|
W3CDom() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString(org.w3c.dom.Document doc)
Serialize a W3C document to a String.
|
void |
convert(Document in,
org.w3c.dom.Document out)
Converts a jsoup document into the provided W3C Document.
|
org.w3c.dom.Document |
fromJsoup(Document in)
Convert a jsoup Document to a W3C Document.
|
public org.w3c.dom.Document fromJsoup(Document in)
in - jsoup docpublic void convert(Document in, org.w3c.dom.Document out)
in - jsoup docout - w3c docfromJsoup(org.jsoup.nodes.Document)public java.lang.String asString(org.w3c.dom.Document doc)
doc - Document