Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

xml.NodeType

xml.NodeType.{|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|}

N/xml Module
xml.NodeType
Enum Description: Enumeration that holds the string values for the supported node types. The Node.nodeType property is defined by one of the values in this enum. Use this enum to determine the type of a node in an XML document. Enum values are constants and therefore read-only.
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/xml Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=xml.NodeType

Example:

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

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345174049.html