Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Document.createElement(options)

{Document}.createElement({tagName: {string}})

N/xml Module
Document.createElement()
Method Description: Creates a new node of type ELEMENT_NODE with the specified name and returns the new xml.Element node. The Node.localName, Node.prefix, and Node.namespaceURI properties of the new node are set to null.
Returns: xml.Element
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.createElement(options)

Example:

// Code Example 1
//Add additional code
//...
var elem = xmlDocument.createElement({
tagName : 'book'
});
//...
//Add additional code

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