Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

xml.Node

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

N/xml Module
xml.Node
Object Description: Represents a single node in an XML document tree. The XML DOM presents a document as a hierarchy of node objects. See the xml.NodeType enum for a list of possible node types. You can use this object to work with a child node, or nested nodes. NetSuite supports a subset of W3C DOM methods. For a complete list of this object’s methods and properties, see Node Object Members. For other code snippets that use this object, see the syntax sample that follows, as well as Node.childNodes and N/xml Module Script Sample.
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.Node

Example:

// Code Example 1
//Add additional code
//...
var bookNode = xml.XPath.select({
node : xmlDocument,
xpath : '//book'
});
//...
//Add additional code

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