Node.prefix

Note:

The content in this help topic pertains to SuiteScript 2.0.

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

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/xml Module

Since

2015.2

Errors

Error Code

Message

Thrown If

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.

Cannot edit the node prefix.

Syntax
Important:

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.

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

        

Related Topics

xml.Node
N/xml Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices