DocumentBuilder.Parse Method

Definition

Overloads

Parse(Stream, String)

Parse the content of the given InputStream as an XML document and return a new DOM Document object.

Parse(Stream)

Parse the content of the given InputStream as an XML document and return a new DOM Document object.

Parse(String)

Parse the content of the given URI as an XML document and return a new DOM Document object.

Parse(File)

Parse the content of the given file as an XML document and return a new DOM Document object.

Parse(InputSource)

Parse the content of the given input source as an XML document and return a new DOM Document object.

Parse(Stream, String)

Parse the content of the given InputStream as an XML document and return a new DOM Document object.

[Android.Runtime.Register("parse", "(Ljava/io/InputStream;Ljava/lang/String;)Lorg/w3c/dom/Document;", "GetParse_Ljava_io_InputStream_Ljava_lang_String_Handler")]
public virtual Org.W3c.Dom.IDocument? Parse (System.IO.Stream? is, string? systemId);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;Ljava/lang/String;)Lorg/w3c/dom/Document;", "GetParse_Ljava_io_InputStream_Ljava_lang_String_Handler")>]
abstract member Parse : System.IO.Stream * string -> Org.W3c.Dom.IDocument
override this.Parse : System.IO.Stream * string -> Org.W3c.Dom.IDocument

Parameters

is
Stream

InputStream containing the content to be parsed.

systemId
String

Provide a base for resolving relative URIs.

Returns

A new DOM Document object.

Attributes

Exceptions

If any IO errors occur.

If any parse errors occur.

Remarks

Parse the content of the given InputStream as an XML document and return a new DOM Document object. An IllegalArgumentException is thrown if the InputStream is null.

Java documentation for javax.xml.parsers.DocumentBuilder.parse(java.io.InputStream, 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.

See also

Applies to

Parse(Stream)

Parse the content of the given InputStream as an XML document and return a new DOM Document object.

[Android.Runtime.Register("parse", "(Ljava/io/InputStream;)Lorg/w3c/dom/Document;", "GetParse_Ljava_io_InputStream_Handler")]
public virtual Org.W3c.Dom.IDocument? Parse (System.IO.Stream? is);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;)Lorg/w3c/dom/Document;", "GetParse_Ljava_io_InputStream_Handler")>]
abstract member Parse : System.IO.Stream -> Org.W3c.Dom.IDocument
override this.Parse : System.IO.Stream -> Org.W3c.Dom.IDocument

Parameters

is
Stream

InputStream containing the content to be parsed.

Returns

Document result of parsing the InputStream

Attributes

Exceptions

If any IO errors occur.

If any parse errors occur.

Remarks

Parse the content of the given InputStream as an XML document and return a new DOM Document object. An IllegalArgumentException is thrown if the InputStream is null.

Java documentation for javax.xml.parsers.DocumentBuilder.parse(java.io.InputStream).

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.

See also

Applies to

Parse(String)

Parse the content of the given URI as an XML document and return a new DOM Document object.

[Android.Runtime.Register("parse", "(Ljava/lang/String;)Lorg/w3c/dom/Document;", "GetParse_Ljava_lang_String_Handler")]
public virtual Org.W3c.Dom.IDocument? Parse (string? uri);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;)Lorg/w3c/dom/Document;", "GetParse_Ljava_lang_String_Handler")>]
abstract member Parse : string -> Org.W3c.Dom.IDocument
override this.Parse : string -> Org.W3c.Dom.IDocument

Parameters

uri
String

The location of the content to be parsed.

Returns

A new DOM Document object.

Attributes

Exceptions

If any IO errors occur.

If any parse errors occur.

Remarks

Parse the content of the given URI as an XML document and return a new DOM Document object. An IllegalArgumentException is thrown if the URI is null null.

Java documentation for javax.xml.parsers.DocumentBuilder.parse(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.

See also

Applies to

Parse(File)

Parse the content of the given file as an XML document and return a new DOM Document object.

[Android.Runtime.Register("parse", "(Ljava/io/File;)Lorg/w3c/dom/Document;", "GetParse_Ljava_io_File_Handler")]
public virtual Org.W3c.Dom.IDocument? Parse (Java.IO.File? f);
[<Android.Runtime.Register("parse", "(Ljava/io/File;)Lorg/w3c/dom/Document;", "GetParse_Ljava_io_File_Handler")>]
abstract member Parse : Java.IO.File -> Org.W3c.Dom.IDocument
override this.Parse : Java.IO.File -> Org.W3c.Dom.IDocument

Parameters

f
File

The file containing the XML to parse.

Returns

A new DOM Document object.

Attributes

Exceptions

If any IO errors occur.

If any parse errors occur.

Remarks

Parse the content of the given file as an XML document and return a new DOM Document object. An IllegalArgumentException is thrown if the File is null null.

Java documentation for javax.xml.parsers.DocumentBuilder.parse(java.io.File).

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.

See also

Applies to

Parse(InputSource)

Parse the content of the given input source as an XML document and return a new DOM Document object.

[Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;", "GetParse_Lorg_xml_sax_InputSource_Handler")]
public abstract Org.W3c.Dom.IDocument? Parse (Org.Xml.Sax.InputSource? is);
[<Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;", "GetParse_Lorg_xml_sax_InputSource_Handler")>]
abstract member Parse : Org.Xml.Sax.InputSource -> Org.W3c.Dom.IDocument

Parameters

is
InputSource

InputSource containing the content to be parsed.

Returns

A new DOM Document object.

Attributes

Exceptions

If any IO errors occur.

If any parse errors occur.

Remarks

Parse the content of the given input source as an XML document and return a new DOM Document object. An IllegalArgumentException is thrown if the InputSource is null null.

Java documentation for javax.xml.parsers.DocumentBuilder.parse(org.xml.sax.InputSource).

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.

See also

Applies to