public class DOMUtils extends Object
Constructor and Description |
---|
DOMUtils() |
Modifier and Type | Method and Description |
---|---|
static Element[] |
getChildElements(Element parent)
Gets all the child elements.
|
static Element[] |
getChildElements(Element parent,
String nsUri,
String localPart)
Gets the child elements of the given name.
|
static Element |
getElement(Document parent,
QName qname) |
static Element |
getElement(Document parent,
String name) |
static Element |
getElement(Document parent,
String namespaceURI,
String localName) |
static Element[] |
getElements(NodeList children) |
static String |
getElementText(Element element) |
static Element |
getFirstChildElement(Element parent,
String nsUri,
String localPart)
Gets the fist child of the given name, or null.
|
public static Element getFirstChildElement(Element parent, String nsUri, String localPart)
public static Element[] getChildElements(Element parent, String nsUri, String localPart)
public static Element[] getChildElements(Element parent)
public static String getElementText(Element element) throws DOMException
DOMException
Copyright © 2019 JBoss by Red Hat. All rights reserved.