public class XMLUtilities
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanAttribute(org.w3c.dom.Element el,
java.lang.String name) |
static org.w3c.dom.Element |
getChild(org.w3c.dom.Element element,
java.lang.String name)
Get the first child element with the given name.
|
static java.util.Collection<org.w3c.dom.Element> |
getChildElements(org.w3c.dom.Node node) |
static java.lang.String |
getChildValue(org.w3c.dom.Element element,
java.lang.String name)
Get the value of the fist child element with the given name.
|
static int |
getIntAttribute(org.w3c.dom.Element el,
java.lang.String name) |
static java.lang.String |
getValue(org.w3c.dom.Element element)
Get the text value for the specified element.
|
public static java.util.Collection<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node node)
public static java.lang.String getValue(org.w3c.dom.Element element)
element - The Elementpublic static org.w3c.dom.Element getChild(org.w3c.dom.Element element,
java.lang.String name)
element - The parent elementname - The child element namepublic static java.lang.String getChildValue(org.w3c.dom.Element element,
java.lang.String name)
element - The parent elementname - The child element namepublic static int getIntAttribute(org.w3c.dom.Element el,
java.lang.String name)
public static boolean getBooleanAttribute(org.w3c.dom.Element el,
java.lang.String name)