ILSParser.ParseURI(String) Method

Definition

Parse an XML document from a location identified by a URI reference [<a href='http://www.

[Android.Runtime.Register("parseURI", "(Ljava/lang/String;)Lorg/w3c/dom/Document;", "GetParseURI_Ljava_lang_String_Handler:Org.W3c.Dom.LS.ILSParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IDocument? ParseURI (string? uri);
[<Android.Runtime.Register("parseURI", "(Ljava/lang/String;)Lorg/w3c/dom/Document;", "GetParseURI_Ljava_lang_String_Handler:Org.W3c.Dom.LS.ILSParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ParseURI : string -> Org.W3c.Dom.IDocument

Parameters

uri
String

The location of the XML document to be read.

Returns

IDocument

If the <code>LSParser</code> is a synchronous <code>LSParser</code>, the newly created and populated <code>Document</code> is returned, or <code>null</code> if an error occured. If the <code>LSParser</code> is asynchronous, <code>null</code> is returned since the document object may not yet be constructed when this method returns.

Attributes

Exceptions

INVALID_STATE_ERR: Raised if the LSParser.busy attribute is true.

PARSE_ERR: Raised if the LSParser was unable to load the XML document. DOM applications should attach a DOMErrorHandler using the parameter "" if they wish to get details on the error.

Remarks

Java documentation for org.w3c.dom.ls.LSParser.parseURI(java.lang.String).

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