Package com.mchange.v1.xml
Class DomParseUtils
java.lang.Object
com.mchange.v1.xml.DomParseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic StringallTextFromElement(Element elem) Deprecated.use allText(Element elem)static StringallTextFromElement(Element elem, boolean trim) Deprecated.use allText(Element elem, boolean trim)static String[]allTextFromImmediateChildElements(Element parent, String tagName) static String[]allTextFromImmediateChildElements(Element parent, String tagName, boolean trim) static StringallTextFromUniqueChild(Element elem, String childTagName) static StringallTextFromUniqueChild(Element elem, String childTagName, boolean trim) static StringallTextFromUniqueImmediateChild(Element elem, String childTagName) static StringattrValFromElement(Element element, String attrName) Deprecated.use Element.getAttribute(String val)static NodeListgetImmediateChildElementsByTagName(Element parent, String tagName) Deprecated.use immediateChildrenByTagName( Element parent, String tagName )static NodeListimmediateChildElementsByTagName(Element parent, String tagName) static ElementuniqueChild(Element elem, String childTagName) static ElementuniqueChildByTagName(Element elem, String childTagName) Deprecated.use uniqueChild(Element elem, String childTagName)static ElementuniqueImmediateChild(Element elem, String childTagName) static ElementuniqueImmediateChildByTagName(Element elem, String childTagName) Deprecated.use uniqueImmediateChild(Element elem, String childTagName)
-
Method Details
-
allTextFromUniqueChild
- Returns:
- null if child doesn't exist.
- Throws:
DOMException
-
allTextFromUniqueChild
public static String allTextFromUniqueChild(Element elem, String childTagName, boolean trim) throws DOMException - Returns:
- null if child doesn't exist.
- Throws:
DOMException
-
uniqueChild
- Throws:
DOMException
-
uniqueChildByTagName
Deprecated.use uniqueChild(Element elem, String childTagName)- Throws:
DOMException
-
allText
- Throws:
DOMException
-
allText
- Throws:
DOMException
-
allTextFromElement
Deprecated.use allText(Element elem)- Throws:
DOMException
-
allTextFromElement
Deprecated.use allText(Element elem, boolean trim)- Throws:
DOMException
-
allTextFromImmediateChildElements
public static String[] allTextFromImmediateChildElements(Element parent, String tagName) throws DOMException - Throws:
DOMException
-
allTextFromImmediateChildElements
public static String[] allTextFromImmediateChildElements(Element parent, String tagName, boolean trim) throws DOMException - Throws:
DOMException
-
immediateChildElementsByTagName
public static NodeList immediateChildElementsByTagName(Element parent, String tagName) throws DOMException - Throws:
DOMException
-
getImmediateChildElementsByTagName
public static NodeList getImmediateChildElementsByTagName(Element parent, String tagName) throws DOMException Deprecated.use immediateChildrenByTagName( Element parent, String tagName )- Throws:
DOMException
-
allTextFromUniqueImmediateChild
public static String allTextFromUniqueImmediateChild(Element elem, String childTagName) throws DOMException - Throws:
DOMException
-
uniqueImmediateChild
- Throws:
DOMException
-
uniqueImmediateChildByTagName
public static Element uniqueImmediateChildByTagName(Element elem, String childTagName) throws DOMException Deprecated.use uniqueImmediateChild(Element elem, String childTagName)- Throws:
DOMException
-
attrValFromElement
Deprecated.use Element.getAttribute(String val)- Throws:
DOMException
-