Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Node.textContent for more information.
N/xml Module
Node.textContent
Property Description:
The textual content of a node and its descendants. If the value is null, then setting it has no effect. If you set this value, any child nodes are removed and replaced by a single text node with this string as a value.
Type:
string
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Module:
N/xml Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Node.textContent
Example:
// Code Example 1
//Add additional code
//...
var nodeValue = parentNode[0].firstChild.textContent;
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_458147827147.html