XML:goChild()

Move to the first child element of the current element. Returns true on success, or false if there is no child element. If there is not a child element, the current position is not changed.

Example

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