Document.importNode(options)
Method Description |
Imports a node from another document to this document. This method creates a new copy of the source node. If the Method returns the imported xml.Node object. |
Returns |
|
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
required |
Node from another XML document to import. |
|
|
boolean |
required |
Use
Important:
This parameter is not supported on Internet Explorer. |
Errors
Error Code |
Message |
Thrown If |
---|---|---|
|
NOT_SUPPORTED_ERR: The implementation does not support the requested type of object or operation. |
Node cannot be imported. |
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.
...
var importedNode = xmlDocument1.importNode({
importedNode : foreignNode,
deep : true
});
...