Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.nodeName

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Node.nodeName for more information.

N/xml Module
Node.nodeName
Property Description: Name of a node, depending on the type. For example, for a node of type xml.Element, the name is the name of the element. On Chrome, this property also includes the namespace or prefix.
Type: string (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=Node.nodeName

Example:

// Code Example 1
//Add additional code
//...
var nodeName = parentNode[0].firstChild.nodeName;
//...
//Add additional code

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