public class DOMUtils extends Object
Constructor and Description |
---|
DOMUtils() |
Modifier and Type | Method and Description |
---|---|
Element |
getElementByTagName(Element parent,
String name) |
Element |
getElementByTagNameNS(Element parent,
String namespaceURI,
String localName) |
static String |
getName(Attr attribute) |
static String |
getName(Element element) |
static String |
getQName(Attr attribute) |
static String |
getQName(Element element) |
static String |
getText(Element element) |
static String |
getUniqueXPath(Node node) |
static String |
getXPath(Node node) |
static boolean |
hasContent(Element element) |
static boolean |
isMixed(Element element) |
static boolean |
isTextOnly(Element element) |
static boolean |
isWhiteSpace(Text node) |
public static boolean isWhiteSpace(Text node)
public static boolean isMixed(Element element)
public Element getElementByTagName(Element parent, String name)
parent
- the parent element.name
- the name of the tag to match on. The special value "*" matches
all tags.public Element getElementByTagNameNS(Element parent, String namespaceURI, String localName)
parent
- the parent element.namespaceURI
- The namespace URI of the elements to match on. The special
value "*" matches all namespaces.localName
- The local name of the elements to match on. The special value
"*" matches all local names.public static boolean hasContent(Element element)
public static boolean isTextOnly(Element element)
Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.