Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Document.importNode(options)

{Document}.importNode({importedNode: {xml.Node},deep: {boolean}})

N/xml Module
Document.importNode()
Method Description: Imports a node from another document to this document. This method creates a new copy of the source node. If the deep parameter is set to true, it imports all children of the specified node. If set to false, it imports only the node itself. Method returns the imported xml.Node object.
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=Document.importNode(options)

Example:

// Code Example 1
//...
var importedNode = xmlDocument1.importNode({
importedNode : foreignNode,
deep : true
});
//...

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