| java.lang.Object | |
| ↳ | org.springframework.util.xml.DomUtils |
Convenience methods for working with the DOM API, in particular for working with DOM Nodes and DOM Elements.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a SAX
ContentHandler that transforms callback calls to DOM Nodes. | |||||||||||
Utility method that returns the first child element identified by its name.
| |||||||||||
Utility method that returns the first child element value identified by its name.
| |||||||||||
Retrieve all child elements of the given DOM element
| |||||||||||
Retrieve all child elements of the given DOM element that match the given element name.
| |||||||||||
Retrieve all child elements of the given DOM element that match any of the given element names.
| |||||||||||
Extract the text value from the given DOM element, ignoring XML comments.
| |||||||||||
Namespace-aware equals comparison.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns a SAX ContentHandler that transforms callback calls to DOM Nodes.
| node | the node to publish events to |
|---|
Utility method that returns the first child element identified by its name.
| ele | the DOM element to analyze |
|---|---|
| childEleName | the child element name to look for |
org.w3c.dom.Element instance, or null if none found
Utility method that returns the first child element value identified by its name.
| ele | the DOM element to analyze |
|---|---|
| childEleName | the child element name to look for |
null if no child element found
Retrieve all child elements of the given DOM element
| ele | the DOM element to analyze |
|---|
org.w3c.dom.Element instances
Retrieve all child elements of the given DOM element that match the given element name. Only look at the direct
child level of the given element; do not go into further depth (in contrast to the DOM API's
getElementsByTagName method).
| ele | the DOM element to analyze |
|---|---|
| childEleName | the child element name to look for |
org.w3c.dom.Element instancesRetrieve all child elements of the given DOM element that match any of the given element names. Only look at the
direct child level of the given element; do not go into further depth (in contrast to the DOM API's
getElementsByTagName method).
| ele | the DOM element to analyze |
|---|---|
| childEleNames | the child element names to look for |
org.w3c.dom.Element instancesExtract the text value from the given DOM element, ignoring XML comments.
Appends all CharacterData nodes and EntityReference nodes into a single String value, excluding Comment nodes.
Namespace-aware equals comparison. Returns true if either getLocalName() or getNodeName() equals desiredName, otherwise returns false.