Language

IXmlPullParser.Depth Property

Definition

Returns the current depth of the element.

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

Property Value

The current element depth. Under the XML pull-parser contract, the depth is 0 outside the root element and 1 at the root element. A start tag increases the depth; the matching end tag retains that depth until the parser advances past it. XmlReaderPullParser instead returns the wrapped reader's depth.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to