Modules
Objects/Functions
SuiteScript 2.0
{Document}.createElementNS({namespaceURI: {string},qualifiedName: {string}})
N/xml Module
Document.createElementNS()
Method Description:
Creates a new node of type ELEMENT_NODE with the specified namespace URI and name and returns the new xml.Element object.
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.createElementNS(options)
Example:
// Code Example 1
//Add additional code
//...
var elem = xmlDocument.createElementNS({
namespaceURI : '*',
qualifiedName : 'book'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_458257690428.html