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 selectorComma-separated selectors to match
Return value
OBJECTThe first matching node (or DEFAULT OBJECT if none was found)