public final class DomUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
DomUtil() |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
getEmptyDocument() |
static org.w3c.dom.Document |
nodeToDocument(org.w3c.dom.Node node) |
static java.lang.String |
nodeToStr(org.w3c.dom.Node node) |
static org.w3c.dom.Document |
srcToDocument(java.lang.String srcXml) |
static org.w3c.dom.Document |
strToDocument(java.lang.String strXml) |
public static org.w3c.dom.Document getEmptyDocument() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
- exceptionpublic static org.w3c.dom.Document nodeToDocument(org.w3c.dom.Node node)
node
- the node to convertpublic static org.w3c.dom.Document strToDocument(java.lang.String strXml)
strXml
- the strXml to convertpublic static org.w3c.dom.Document srcToDocument(java.lang.String srcXml)
srcXml
- the srcXml to convertpublic static java.lang.String nodeToStr(org.w3c.dom.Node node)
node
- the node to convert