Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.isEqualNode(options)

{Node}.isEqualNode({other: {xml.Node}})

N/xml Module
Node.isEqualNode()
Method Description: Returns true if two nodes are equal or returns false if two nodes are not equal. The two nodes are equal if they meet the following conditions: Both nodes have the same type. Both nodes have the same attributes and attribute values. The order of the attributes is not considered. Both nodes have equal lists of child nodes and the child nodes appear in the same order. Two nodes may be equal, even if they are not the same. See Node.isSameNode(options). This method is not supported on Internet Explorer.
Returns: boolean
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=Node.isEqualNode(options)

Example:

// Code Example 1
//Add additional code
//...
var isEqual = elem[0].isEqualNode({
other : node
});
//...
//Add additional code

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