Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Attr.value

{Attr}.value{SSS_XML_DOM_EXCEPTION: {Invalid argument type, expected string: value}})

N/xml Module
Attr.value
Property Description: Value of an attribute. The value of the attribute is returned as a string. Character and general entity references are replaced with their values. For example, a character reference such as   or an entity reference such as &#nbsp; is replaced with a non-breaking space. If you set this value, it creates a text node with the unparsed contents of the string, for example, any characters that an XML processor would recognize as markup are instead treated as literal text.
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=Attr.value

Example:

// Code Example 1
//Add additional code
//...
var attrValue = attr.value;
//...
//Add additional code

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