Org.XmlPull.V1.IXmlSerializer.Depth Property
Returns the current depth of the element.

Syntax

[get: Android.Runtime.Register("getDepth", "()I", "GetGetDepthHandler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int Depth { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Returns the current depth of the element. Outside the root element, the depth is 0. The depth is incremented by 1 when startTag() is called. The depth is decremented after the call to endTag() event was observed.

xml Example

 <!-- outside -->     0
 <root>               1
   sometext                 1
     <foobar>         2
     </foobar>        2
 </root>              1
 <!-- outside -->     0
 

[Android Documentation]

Requirements

Namespace: Org.XmlPull.V1
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1