Modules
Objects/Functions
SuiteScript 2.0
{Element}.getElementsByTagName({tagName: {string}})
N/xml Module
Element.getElementsByTagName()
Method Description:
Returns an array of descendant xml.Element objects with a specific tag name, in the order in which they appear in the XML document.
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=Element.getElementsByTagName(options)
Example:
// Code Example 1
//Add additional code
//...
var elem = parentNode[0].getElementsByTagName({tagName : 'title'});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_452163024902.html