XmlService (interface)

This service provides a number of utility services for interacting with w3c DOM (XML) Document s

API

XmlService.java
interface XmlService {
  Document asDocument(String xmlStr)     (1)
  String asString(final Document doc)     (2)
  Element getChildElement(final Element el, final String tagname)     (3)
  String getChildTextValue(final Element el)     (4)
}
1 asDocument(String)

Converts xml string into an Document W3C Document .

2 asString(Document)

Serializes a Document W3C Document back into a string.

3 getChildElement(Element, String)

Convenience method to walk XML document.

4 getChildTextValue(Element)

Convenience method to obtain value of child text node.

Members

asDocument(String)

Converts xml string into an Document W3C Document .

asString(Document)

Serializes a Document W3C Document back into a string.

getChildElement(Element, String)

Convenience method to walk XML document.

getChildTextValue(Element)

Convenience method to obtain value of child text node.

Implementation

The framework provides a default implementation of this service, o.a.i.core.runtimeservices.xml.XmlServiceDefault.

See also