Java XML Document Create CreateDocument()

Here you can find the source of CreateDocument()

Description

Create Document

License

LGPL

Declaration

public static Document CreateDocument() 

Method Source Code

//package com.java2s;
/*//from   ww  w  . j av  a2s. c  om
 * JLib - Publicitas Java library v1.2.0.
 *
 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Publicitas SA.
 * Licensed under LGPL (LGPL-LICENSE.txt) license.
 */

import javax.xml.parsers.*;

import org.w3c.dom.Document;

public class Main {
    public static Document CreateDocument() {
        try {
            return DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
        } catch (ParserConfigurationException e) {
            e.printStackTrace();
        } catch (FactoryConfigurationError e) {
            e.printStackTrace();
        }
        return null;
    }
}

Related

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