Package com.mchange.v1.xml
Class DomParseUtils
java.lang.Object
com.mchange.v1.xml.DomParseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
allTextFromElement
(Element elem) Deprecated.use allText(Element elem)static String
allTextFromElement
(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 String
allTextFromUniqueChild
(Element elem, String childTagName) static String
allTextFromUniqueChild
(Element elem, String childTagName, boolean trim) static String
allTextFromUniqueImmediateChild
(Element elem, String childTagName) static String
attrValFromElement
(Element element, String attrName) Deprecated.use Element.getAttribute(String val)static NodeList
getImmediateChildElementsByTagName
(Element parent, String tagName) Deprecated.use immediateChildrenByTagName( Element parent, String tagName )static NodeList
immediateChildElementsByTagName
(Element parent, String tagName) static Element
uniqueChild
(Element elem, String childTagName) static Element
uniqueChildByTagName
(Element elem, String childTagName) Deprecated.use uniqueChild(Element elem, String childTagName)static Element
uniqueImmediateChild
(Element elem, String childTagName) static Element
uniqueImmediateChildByTagName
(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
-