standard.lib.xml.xmlTextReaderDepth

xmlTextReaderDepth is available since version 1.0.

Prototype:

number xmlTextReaderDepth(number reader)

Parameters

reader
the xmlTextReaderPtr used as returned by xmlReaderForMemory or xmlReaderForFile

Description:

The depth of the node in the tree.

Return value:

Returns the depth or -1 in case of error.