SYNOPSISint xmlReaderGetDepth(xmlReader reader)
Parameters:
reader
- the xmlReader
object
Returns:
DESCRIPTIONxmlReaderGetDepth()
returns how many elements deep the reader's current
position is, where the root element is 1, its children are 2, its
children's children are 3, etc.
EXAMPLE<$depth = (xmlReaderGetDepth($reader))>
CAVEATS
The xmlReader
parser can read ahead and buffer some of the
XML message, so functions like this might not match the current
element.
SEE ALSOxmlReaderGetBytesConsumed
,
xmlReaderGetColumn
,
xmlReaderGetLine
,
xmlReaderGetType
,
xmlReaderIsEmptyElement