Top Fields Constructors Methods
com.mchange.v1.xml

public final Class DomParseUtils

extends Object
Class Inheritance
Imports
java.util.*, org.xml.sax.*, org.w3c.dom.*, com.mchange.v1.util.DebugUtils

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
public static String
allText(Element elem, boolean trim)

public static String
allTextFromElement(Element elem)
Deprecated use allText(Element elem)

public static String
allTextFromElement(Element elem, boolean trim)
Deprecated use allText(Element elem, boolean trim)

public static String[]
public static String[]
allTextFromImmediateChildElements(Element parent, String tagName, boolean trim)

public static String

Returns:

null if child doesn't exist.
allTextFromUniqueChild
(Element elem, String childTagName)

public static String

Returns:

null if child doesn't exist.
allTextFromUniqueChild
(Element elem, String childTagName, boolean trim)

public static String
public static String
attrValFromElement(Element element, String attrName)
Deprecated use Element.getAttribute(String val)

public static NodeList
getImmediateChildElementsByTagName(Element parent, String tagName)
Deprecated use immediateChildrenByTagName( Element parent, String tagName )

public static NodeList
public static Element
uniqueChild(Element elem, String childTagName)

public static Element
uniqueChildByTagName(Element elem, String childTagName)
Deprecated use uniqueChild(Element elem, String childTagName)

public static Element
uniqueImmediateChild(Element elem, String childTagName)

public static Element
uniqueImmediateChildByTagName(Element elem, String childTagName)
Deprecated use uniqueImmediateChild(Element elem, String childTagName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
pack-priv static final boolean DEBUG

Constructor Detail

DomParseUtilsback to summary
private DomParseUtils()

Method Detail

allTextback to summary
public static String allText(Element elem) throws DOMException
allTextback to summary
public static String allText(Element elem, boolean trim) throws DOMException
allTextFromElementback to summary
public static String allTextFromElement(Element elem) throws DOMException

Deprecated

use allText(Element elem)

allTextFromElementback to summary
public static String allTextFromElement(Element elem, boolean trim) throws DOMException

Deprecated

use allText(Element elem, boolean trim)

allTextFromImmediateChildElementsback to summary
public static String[] allTextFromImmediateChildElements(Element parent, String tagName) throws DOMException
allTextFromImmediateChildElementsback to summary
public static String[] allTextFromImmediateChildElements(Element parent, String tagName, boolean trim) throws DOMException
allTextFromUniqueChildback to summary
public static String allTextFromUniqueChild(Element elem, String childTagName) throws DOMException
Returns:String

null if child doesn't exist.

allTextFromUniqueChildback to summary
public static String allTextFromUniqueChild(Element elem, String childTagName, boolean trim) throws DOMException
Returns:String

null if child doesn't exist.

allTextFromUniqueImmediateChildback to summary
public static String allTextFromUniqueImmediateChild(Element elem, String childTagName) throws DOMException
attrValFromElementback to summary
public static String attrValFromElement(Element element, String attrName) throws DOMException

Deprecated

use Element.getAttribute(String val)

getImmediateChildElementsByTagNameback to summary
public static NodeList getImmediateChildElementsByTagName(Element parent, String tagName) throws DOMException

Deprecated

use immediateChildrenByTagName( Element parent, String tagName )

immediateChildElementsByTagNameback to summary
public static NodeList immediateChildElementsByTagName(Element parent, String tagName) throws DOMException
uniqueChildback to summary
public static Element uniqueChild(Element elem, String childTagName) throws DOMException
uniqueChildByTagNameback to summary
public static Element uniqueChildByTagName(Element elem, String childTagName) throws DOMException

Deprecated

use uniqueChild(Element elem, String childTagName)

uniqueImmediateChildback to summary
public static Element uniqueImmediateChild(Element elem, String childTagName) throws DOMException
uniqueImmediateChildByTagNameback to summary
public static Element uniqueImmediateChildByTagName(Element elem, String childTagName) throws DOMException

Deprecated

use uniqueImmediateChild(Element elem, String childTagName)