xml.Node
Object Description |
Represents a single node in an XML document tree. A node can be an element, attribute, or document. For a list of possible node types, see xml.NodeType. The XML Document Object Module (DOM) is a general way to access and manipulate XML documents. In an XML document, the DOM organizes nodes into a hierarchical tree structure. For general information about the XML DOM structure, see XML DOM. NetSuite supports a subset of W3C DOM methods to manipulate parent and nested nodes. For other code samples that use this object, see the syntax sample that follows, as well as Node.childNodes and N/xml Module Script Samples. |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2015.2 |
Syntax
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.
In the following code sample, a single node is selected for access. The type of node being selected is an XML document. For more information about the context of the xpath
parameter, see xml.XPath and XPath.select(options).
//Add additional code
...
var bookNode = xml.XPath.select({
node : xmlDocument,
xpath : '//book'
});
...
//Add additional code