Thunderstone Software Document Search, Retrieval, and Management
Search:
Vortex Manual
 

xmlReaderGetDepth

 

SYNOPSIS

    int xmlReaderGetDepth(xmlReader reader)

Parameters:

  • reader - the xmlReader object

Returns:

  • The reader's current depth


DESCRIPTION
xmlReaderGetDepth() 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 ALSO
xmlReaderGetBytesConsumed, xmlReaderGetColumn, xmlReaderGetLine, xmlReaderGetType


Copyright © Thunderstone Software     Last updated: Mon Feb 18 10:28:15 EST 2013
 
Home   ::   Products   ::   Solutions   ::   How to Buy   ::   Support   ::   Contact Us   ::   News   ::   About
Copyright © 2013 Thunderstone Software LLC. All rights reserved.