xml.NodeType

Note:

The content in this help topic pertains to SuiteScript 2.0.

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.

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/xml Module

Since

2015.2

Values

  • 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

N/xml Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices