Example usage for org.w3c.dom Node DOCUMENT_NODE

List of usage examples for org.w3c.dom Node DOCUMENT_NODE

Introduction

In this page you can find the example usage for org.w3c.dom Node DOCUMENT_NODE.

Prototype

short DOCUMENT_NODE

To view the source code for org.w3c.dom Node DOCUMENT_NODE.

Click Source Link

Document

The node is a Document.

Usage

From source file:tufts.vue.ds.XMLIngest.java

private static final String getNodeType(int t) {
    if (t == Node.ATTRIBUTE_NODE)
        return "attr";
    if (t == Node.CDATA_SECTION_NODE)
        return "cdata";
    if (t == Node.COMMENT_NODE)
        return "comment";
    if (t == Node.DOCUMENT_NODE)
        return "document";
    if (t == Node.ELEMENT_NODE)
        return "element";
    if (t == Node.ENTITY_NODE)
        return "entity";
    if (t == Node.TEXT_NODE)
        return "text";
    return "" + t;

}