XmlService
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(Document doc) (2)
Element getChildElement(Element el, String tagname) (3)
String getChildTextValue(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. |
Implementation
The Core Runtime Services module provides a default implementation of this service, XmlServiceDefault.