public final class DomUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Attr |
createAndAddAttribute(Node parentNode,
String attrName,
String attrValue)
|
static Element |
createAndAddElement(Node parentNode,
String nodeName)
|
static Text |
createAndAddTextNode(Node parentNode,
String text)
|
static List<Node> |
getNodeTreeAsList(Node node)
|
static Document |
getOwningDocument(Node parentNode)
Returns the owning
Document. |
static String |
nodeToString(Node node)
|
static String |
nodeToString(Node node,
boolean omitXmlDeclaration,
String encoding)
|
public static String nodeToString(Node node, boolean omitXmlDeclaration, String encoding)
public static Document getOwningDocument(Node parentNode)
Document.public static Attr createAndAddAttribute(Node parentNode, String attrName, String attrValue)
Created by ThK-Systems. License: LGPL