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 | Description |
---|---|---|
protected static class |
W3CDom.W3CBuilder |
Implements the conversion by walking the input.
|
Modifier and Type | Field | Description |
---|---|---|
protected DocumentBuilderFactory |
factory |
Constructor | Description |
---|---|
W3CDom() |
Modifier and Type | Method | 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–2018 Jonathan Hedley. All rights reserved.