Node.prefix
Property Description |
The namespace prefix of the node, or |
Type |
string |
Module |
|
Since |
2015.2 |
Errors
Error Code |
Message |
Thrown If |
---|---|---|
|
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
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