|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xframe.xsddoc.util.DomUtil
DOM Utility methods.
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static org.w3c.dom.Node getFirstElementChild(org.w3c.dom.Node node)
node
- the parent node
null
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 attribute
null
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |