public final class DOMUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DOMUtil.CopyUserData |
Modifier and Type | Field and Description |
---|---|
static DOMUtil.CopyUserData |
COPY_USER_DATA |
Modifier and Type | Method and Description |
---|---|
static Element |
findElementByAttribute(Element element,
String namespace,
String localName,
String value) |
static Element |
findElementById(Element element,
String id) |
static Element |
findElementByName(Node node,
String namespace,
String localName) |
static String |
getAttribute(Element element,
String namespace,
String localName) |
static URL |
getBaseURL(Node tree) |
static boolean |
getBooleanAttribute(Element element,
String namespace,
String localName,
boolean fallback) |
static Element |
getChildElementByName(Node node,
String namespace,
String localName) |
static URL |
getDocumentURL(Document doc) |
static DOMImplementation |
getDOMImplementation() |
static String |
getNamespaceURI(QName name) |
static String |
getNonEmptyAttribute(Element element,
String namespace,
String localName) |
static Element |
getNthChildElement(Node node,
int index) |
static Element |
getParentElement(Node node) |
static String |
getQName(QName name) |
static QName |
getQNameAttribute(Element element,
String namespace,
String localName,
QName fallback) |
static String |
getXMLLang(Element element) |
static boolean |
hasName(Node node,
QName name) |
static boolean |
hasName(Node node,
String namespace,
String localName) |
static String |
lookupXMLLang(Element element) |
static Document |
newDocument() |
static Document |
newDocument(String namespaceURI,
String qualifiedName,
DocumentType docType) |
static String[] |
parseName(String name) |
static void |
removeUserData(Node node,
String key) |
public static final DOMUtil.CopyUserData COPY_USER_DATA
public static Document newDocument()
public static Document newDocument(String namespaceURI, String qualifiedName, DocumentType docType)
public static DOMImplementation getDOMImplementation()
public static String getNonEmptyAttribute(Element element, String namespace, String localName)
public static QName getQNameAttribute(Element element, String namespace, String localName, QName fallback)
public static boolean getBooleanAttribute(Element element, String namespace, String localName, boolean fallback)
public static Element findElementByName(Node node, String namespace, String localName)
public static Element getChildElementByName(Node node, String namespace, String localName)
public static Element findElementByAttribute(Element element, String namespace, String localName, String value)