ILSParser.Parse(ILSInput) Method

Definition

Parse an XML document from a resource identified by a LSInput.

[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 LSInput from which the source of the document is to be read.

Returns

If the LSParser is a synchronous LSParser, the newly created and populated Document is returned. If the LSParser is asynchronous, null 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

Parse an XML document from a resource identified by a LSInput.

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