Java.Util.Properties.LoadFromXML Method
Loads the properties from an InputStream containing the properties in XML form.

Syntax

[Android.Runtime.Register("loadFromXML", "(Ljava/io/InputStream;)V", "GetLoadFromXML_Ljava_io_InputStream_Handler")]
public virtual void LoadFromXML (System.IO.Stream in)

Parameters

in
the InputStream containing the XML document.

Exceptions

TypeReason
Java.IO.IOExceptionin case an error occurs during a read operation.
Java.Util.InvalidPropertiesFormatExceptionif the XML data is not a valid properties file.

Remarks

Loads the properties from an InputStream containing the properties in XML form. The XML document must begin with (and conform to) following DOCTYPE:

xml Example

 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
 
Also the content of the XML data must satisfy the DTD but the xml is not validated against it. The DTD is not loaded from the SYSTEM ID. After this method returns the InputStream is not closed.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1