Modules
Objects/Functions
SuiteScript 2.0
{Document}.getElementsByTagNameNS({namespaceURI: {string},localName: {string}})
N/xml Module
Document.getElementsByTagNameNS()
Method Description:
Returns an array of xml.Element objects with a specific tag name and namespace, in the order in which they appear in the XML document.
This method is not supported on Internet Explorer.
Returns:
xml.Element[]
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=Document.getElementsByTagNameNS(options)
Example:
// Code Example 1
//Add additional code
//...
var elem = xmlDocument.getElementsByTagNameNS({
namespaceURI : '*',
localName : 'book'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_460907836913.html