public class W3CDom extends 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 DocumentBuilderFactory |
factory |
| Constructor and Description |
|---|
W3CDom() |
| Modifier and Type | Method and Description |
|---|---|
String |
asString(Document doc)
Serialize a W3C document to a String.
|
void |
convert(Document in,
Document out)
Converts a jsoup document into the provided W3C Document.
|
Document |
fromJsoup(Document in)
Convert a jsoup Document to a W3C Document.
|
protected DocumentBuilderFactory factory
public Document fromJsoup(Document in)
in - jsoup docpublic void convert(Document in, Document out)
in - jsoup docout - w3c docfromJsoup(org.jsoup.nodes.Document)Copyright © 2009–2017 Jonathan Hedley. All rights reserved.