Language

DocumentBuilder.ParseAsync Method

Definition

Overloads

Name Description
ParseAsync(File)

Parses the content of the given file as an XML document.

ParseAsync(InputSource)

Parses the content of the given input source as an XML document.

ParseAsync(Stream)

Parses the content of the given input stream as an XML document.

ParseAsync(String)

Parses the content of the given URI as an XML document.

ParseAsync(Stream, String)

Parses the content of the given input stream as an XML document, using the specified base URI to resolve relative URIs.

ParseAsync(File)

Parses the content of the given file as an XML document.

public System.Threading.Tasks.Task<Org.W3c.Dom.IDocument?> ParseAsync(Java.IO.File? f);
member this.ParseAsync : Java.IO.File -> System.Threading.Tasks.Task<Org.W3c.Dom.IDocument>

Parameters

f
File

The file containing the XML to parse.

Returns

A task that represents the parsing operation.

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

ParseAsync(InputSource)

Parses the content of the given input source as an XML document.

public System.Threading.Tasks.Task<Org.W3c.Dom.IDocument?> ParseAsync(Org.Xml.Sax.InputSource? is);
member this.ParseAsync : Org.Xml.Sax.InputSource -> System.Threading.Tasks.Task<Org.W3c.Dom.IDocument>

Parameters

is
InputSource

The input source containing the content to parse.

Returns

A task that represents the parsing operation.

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

ParseAsync(Stream)

Parses the content of the given input stream as an XML document.

public System.Threading.Tasks.Task<Org.W3c.Dom.IDocument?> ParseAsync(System.IO.Stream? is);
member this.ParseAsync : System.IO.Stream -> System.Threading.Tasks.Task<Org.W3c.Dom.IDocument>

Parameters

is
Stream

The input stream containing the content to parse.

Returns

A task that represents the parsing operation.

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

ParseAsync(String)

Parses the content of the given URI as an XML document.

public System.Threading.Tasks.Task<Org.W3c.Dom.IDocument?> ParseAsync(string? uri);
member this.ParseAsync : string -> System.Threading.Tasks.Task<Org.W3c.Dom.IDocument>

Parameters

uri
String

The location of the content to parse.

Returns

A task that represents the parsing operation.

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

ParseAsync(Stream, String)

Parses the content of the given input stream as an XML document, using the specified base URI to resolve relative URIs.

public System.Threading.Tasks.Task<Org.W3c.Dom.IDocument?> ParseAsync(System.IO.Stream? is, string? systemId);
member this.ParseAsync : System.IO.Stream * string -> System.Threading.Tasks.Task<Org.W3c.Dom.IDocument>

Parameters

is
Stream

The input stream containing the content to parse.

systemId
String

A base URI for resolving relative URIs.

Returns

A task that represents the parsing operation.

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