Android Utililty Methods XML Document Create

List of utility methods to do XML Document Create

Description

The list of methods to do XML Document Create are organized into topic(s).

Method

DocumentgetDomElement(String aXml)
Gets DOM structure
Document doc = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
    DocumentBuilder db = dbf.newDocumentBuilder();
    InputSource is = new InputSource();
    is.setCharacterStream(new StringReader(aXml));
    doc = db.parse(is);
} catch (ParserConfigurationException e) {
...
DocumentLoadXml(String xml)
Load Xml
ByteArrayInputStream stream = new ByteArrayInputStream(
        xml.getBytes());
try {
    return LoadXml(stream);
} finally {
    if (stream != null)
        stream.close();