xml.Element

Object Description

Represents an element in an XML document. Elements may contain attributes, other elements, or text. If an element contains text, the text is represented in a text node of type TEXT_NODE.

For example, the following element year contains a text node with the value of 2015:

<year>2015</year>

For a list of this object’s methods and properties, see Element Object Members

An XML element object is also a node of type ELEMENT_NODE. In addition to the Element object members, Element objects inherit the members of the Node object. For a complete list of these methods and properties, see Node Object Members.

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/xml Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/xml Module Script Samples.

          //Add additional code 
...
var elem = parentNode[0].getElementsByTagName({tagName : 'title'});
...
//Add additional code 

        

Related Topics

General Notices