XmlElement::Closest (open)

Traverses the element and its parents until the document root, and returns the first element that matches the specified selectors.

Syntax

LOADLIB "wh::xml/dom.whlib";

OBJECT FUNCTION Closest(STRING selector)

Parameters

STRING selector

Comma-separated selectors to match

Return value

OBJECT

The first matching node (or DEFAULT OBJECT if none was found)