Java XML Document Create newDocument()

Here you can find the source of newDocument()

Description

Return a new empty XML document, using the default JVM XML API usually this is Xerces.

License

LGPL

Declaration

public static Document newDocument() 

Method Source Code

//package com.java2s;

import javax.xml.parsers.DocumentBuilder;

import org.w3c.dom.Document;

public class Main {
    private static DocumentBuilder dBuilder;

    /**//ww  w . j  a v  a2s .  c  o m
     * Return a new  empty XML document, using the default JVM XML API
     * usually this is Xerces.
     */
    public static Document newDocument() {
        return dBuilder.newDocument();
    }
}

Related

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