public final class DomUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAttributeValue(org.w3c.dom.Node node,
java.lang.String name)
Returns the value of a named attribute of a given node.
|
static org.w3c.dom.Node |
getFirstElementChild(org.w3c.dom.Node node)
Returns the first child node that is an element (type == ELEMENT_NODE).
|
static org.w3c.dom.Node |
removeDuplicates(org.w3c.dom.Node parent)
Removes all duplicate children from a given node.
|
public static org.w3c.dom.Node getFirstElementChild(org.w3c.dom.Node node)
node
- the parent nodenull
if non availablepublic static java.lang.String getAttributeValue(org.w3c.dom.Node node, java.lang.String name)
node
- an element nodename
- the name of an attributenull
if the attribute doesn't exist.public static org.w3c.dom.Node removeDuplicates(org.w3c.dom.Node parent)
parent
- the parent node of the children to process.Submit a
bug or a
feature.
Created by
xsddoc, a sub project of
xframe, hosted at
http://www.sourceforge.net.