XML:goPath(path)

Move to the element specified by the XML path string. If the path is valid, return true; otherwise return false.

Example

doc = XML.parse(str)
if not doc:goPath('/foo/bar') then
    error("Invalid XML element /foo/bar",0)
end