com.sun.tools.xjc.util
Class DOMUtils
java.lang.Object
com.sun.tools.xjc.util.DOMUtils
public class DOMUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMUtils
public DOMUtils()
getFirstChildElement
public static Element getFirstChildElement(Element parent,
String nsUri,
String localPart)
- Gets the fist child of the given name, or null.
getChildElements
public static Element[] getChildElements(Element parent,
String nsUri,
String localPart)
- Gets the child elements of the given name.
getChildElements
public static Element[] getChildElements(Element parent)
- Gets all the child elements.
getElementText
public static String getElementText(Element element)
throws DOMException
- Throws:
DOMException
getElement
public static Element getElement(Document parent,
String name)
getElement
public static Element getElement(Document parent,
QName qname)
getElement
public static Element getElement(Document parent,
String namespaceURI,
String localName)
getElements
public static Element[] getElements(NodeList children)