Skip to content

XmlNode.EvaluateBoolean

Overview

Boolean XmlNode.EvaluateBoolean ( [ xpath ] )
Returns boolean value of the specified xpath.

Arguments

String xpath

XPath to evaluate. If not specified current node is used.

Remarks

This method checks the evaluated value is (non-case sensitive) equal to "false" or "0" or empty value. All other values are evaluated as true value.

Examples

Evaluate with a xpath

var isDisabled = $Xml.EvaluateBoolean('//Customer/IsDisabled');

See Also