Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.lookupPrefix(options)

{Node}.lookupPrefix({ namespaceURI: {string}})

N/xml Module
Node.lookupPrefix()
Method Description: Returns the namespace prefix associated with the specified namespace uniform resource identifier (URI). Returns null if the specified URI does not have an associated prefix. If more than one prefix is associated with the namespace prefix, the namespace returned by this method depends on the module implementation. This method is not supported on Internet Explorer.
Returns: string
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.lookupPrefix(options)

Example:

// Code Example 1
//Add additional code
//...
var prefix = parentNode[0].lookupPrefix({
namespaceURI : '*'
});
//...
//Add additional code

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