public final class DomUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Document |
getEmptyDocument() |
static Document |
nodeToDocument(Node node) |
static String |
nodeToStr(Node node) |
static Document |
srcToDocument(String srcXml) |
static Document |
strToDocument(String strXml) |
public static Document getEmptyDocument() throws ParserConfigurationException
ParserConfigurationException
- exceptionpublic static Document nodeToDocument(Node node)
node
- the node to convertpublic static Document strToDocument(String strXml)
strXml
- the strXml to convertpublic static Document srcToDocument(String srcXml)
srcXml
- the srcXml to convertCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.