Java XML Document Create getDocument(Document document)

Here you can find the source of getDocument(Document document)

Description

get Document

License

Apache License

Declaration

private static Node getDocument(Document document) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Document;
import org.w3c.dom.Node;

public class Main {
    /***********************************************************************/
    private static Node getDocument(Document document) {
        return document != null ? document.getChildNodes().item(0) : null;
    }/*  w w w. j av a  2s . c  om*/
}

Related

  1. createNewDocument(DocumentBuilder docBuilder)
  2. createNewDocument(String namespaceURI, String qualifiedName)
  3. getDocument()
  4. getDocument()
  5. getDocument()
  6. getDocument(DOMSource source)
  7. getDocument(File f)
  8. getDocument(File file)
  9. getDocument(File file)