xml.NodeType

Enum Description

Holds the string values for the supported node types. Use this enum to determine the type of a node in an XML document and to set the Node.nodeType property.

Note:

Enum values are constants and therefore read-only.

Module

N/xml Module

Sibling Module Members

N/xml Module Members

Since

2015.2

Values

Value

ATTRIBUTE_NODE

CDATA_SECTION_NODE

COMMENT_NODE

DOCUMENT_FRAGMENT_NODE

DOCUMENT_NODE

DOCUMENT_TYPE_NODE

ELEMENT_NODE

ENTITY_NODE

ENTITY_REFERENCE_NODE

NOTATION_NODE

PROCESSING_INSTRUCTION_NODE

TEXT_NODE

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/xml Module Script Samples.

            //Add additional code 
...
var DocType = xmlDocument.nodeType; \\ returns DOCUMENT_NODE
...
//Add additional code 

          

Related Topics

General Notices