Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.prefix

{Node}.prefix{SSS_XML_DOM_EXCEPTION: {NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.}})

N/xml Module
Node.prefix
Property Description: The namespace prefix of the node, or null if the node does not have a namespace. If the value is null, setting it has no effect, including read-only node types.
Type: string
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/xml Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Node.prefix

Example:

// Code Example 1
//Add additional code
//...
var namespacePrefix = parentNode[0].firstChild.prefix;
//...
//Add additional code

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