Android Guides | Samples

Android.Content.Res.AssetManager.OpenXmlResourceParser Method

Retrieve a parser for a compiled XML file.

Syntax

[Android.Runtime.Register("openXmlResourceParser", "(ILjava/lang/String;)Landroid/content/res/XmlResourceParser;", "")]
public XmlReader OpenXmlResourceParser (Int32 cookie, String fileName)

Parameters

cookie
Identifier of the package to be opened.
fileName
The name of the file to retrieve.

Exceptions

TypeReason
IOException

Remarks

Retrieve a parser for a compiled XML file.

[Android Documentation]

Requirements

Namespace: Android.Content.Res
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1