Java XML Document Create newDocument()

Here you can find the source of newDocument()

Description

new Document

License

Open Source License

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 documentBuilder = null;

    /**/*from  w w  w.jav a 2  s  .com*/
     * 
     * @return
     */
    public static Document newDocument() {
        if (documentBuilder == null) {
            return null;
        }
        return documentBuilder.newDocument();
    }
}

Related

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