Java XML Document Create createDocument()

Here you can find the source of createDocument()

Description

create Document

License

Open Source License

Declaration

static Document createDocument() throws ParserConfigurationException 

Method Source Code


//package com.java2s;
//License from project: GNU General Public License 

import org.w3c.dom.Document;

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

public class Main {
    static Document createDocument() throws ParserConfigurationException {
        final DocumentBuilder documentBuilder;
        documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
        return documentBuilder.newDocument();
    }//  ww w .  j av a  2  s  .  co m
}

Related

  1. createDocument()
  2. createDocument()
  3. CreateDocument()
  4. createDocument()
  5. createDocument()
  6. createDocument()
  7. createDocument()
  8. createDocument()
  9. createDocument()