Modules
Objects/Functions
SuiteScript 2.0
{Node}.isDefaultNamespace({namespaceURI: {string}})
N/xml Module
Node.isDefaultNamespace()
Method Description:
Returns true if theĀ specified namespace uniform resource identifier (URI) is the default namespace for the current node or returns false if the specified namespace is not the default namespace.
See also Node.namespaceURI.
This method is not supported on Internet Explorer.
Returns:
boolean
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=Node.isDefaultNamespace(options)
Example:
// Code Example 1
//Add additional code
//...
var isDefault = parentNode[0].isDefaultNamespace({
namespaceURI : '*'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_46175476074.html