Android XML Document Create createDocument()

Here you can find the source of createDocument()

Description

create Document

Declaration

public static Document createDocument()
            throws ParserConfigurationException 

Method Source Code

//package com.java2s;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.w3c.dom.Document;

public class Main {
    public static Document createDocument()
            throws ParserConfigurationException {
        DocumentBuilder builder = DocumentBuilderFactory.newInstance()
                .newDocumentBuilder();//from  ww w .ja va 2s  .c o  m
        return builder.newDocument();
    }
}

Related

  1. createEmptyDocument()
  2. createNewDocument()
  3. newDocument(String rootName)
  4. stringToDocument(String xmlString)
  5. stringToDocument(String xmlString)
  6. createDocument(final String source, boolean isNamespaceAware)