Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

XPath.select(options)

{XPath}.select({node: {xml.Node},xpath: {string}})

N/xml Module
XPath.select()
Method Description: Selects an array of nodes from an XML that match an XPath expression.
Returns: xml.Node[]
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/xml Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=XPath.select(options)

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_4344925105.html