ILSParser.Parse(ILSInput) Method

Definition

Parse an XML document from a resource identified by a <code>LSInput</code>.

[Android.Runtime.Register("parse", "(Lorg/w3c/dom/ls/LSInput;)Lorg/w3c/dom/Document;", "GetParse_Lorg_w3c_dom_ls_LSInput_Handler:Org.W3c.Dom.LS.ILSParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IDocument? Parse (Org.W3c.Dom.LS.ILSInput? input);
[<Android.Runtime.Register("parse", "(Lorg/w3c/dom/ls/LSInput;)Lorg/w3c/dom/Document;", "GetParse_Lorg_w3c_dom_ls_LSInput_Handler:Org.W3c.Dom.LS.ILSParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Parse : Org.W3c.Dom.LS.ILSInput -> Org.W3c.Dom.IDocument

Parameters

input
ILSInput

The <code>LSInput</code> from which the source of the document is 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. 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's 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.parse(org.w3c.dom.ls.LSInput).

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