Skip to content

IsEmpty

Returns a boolean value indicating whether the current node has an empty string value.

1
myXml.IsEmpty():boolean

Returns a boolean value indicating whether the current node or the specified XPath has an empty string.

1
myXml.IsEmpty(xpath: string):boolean

Parameters

string xpath
    The XPath to evaluate.

Remarks

Returns true if the specified XPath does not correspond to an existing node. Returns true if the specified XPath does not correspond to an existing node.

Evaluate with an XPath

1
var isNameEmpty = $Xml.IsEmpty('//Customer/Name');