Javax.Xml.Parsers.DocumentBuilderFactory.Schema Property
Gets the Javax.Xml.Validation.Schema object specified through the DocumentBuilderFactory.Schema method.

Syntax

[get: Android.Runtime.Register("getSchema", "()Ljavax/xml/validation/Schema;", "GetGetSchemaHandler")]
[set: Android.Runtime.Register("setSchema", "(Ljavax/xml/validation/Schema;)V", "GetSetSchema_Ljavax_xml_validation_Schema_Handler")]
public virtual Javax.Xml.Validation.Schema Schema { get; set; }

Value

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionFor backward compatibility, when implementations for earlier versions of JAXP is used, this exception will be thrown.
Java.Lang.UnsupportedOperationExceptionFor backward compatibility, when implementations for earlier versions of JAXP is used, this exception will be thrown.

Remarks

Get method documentation [Android Documentation]

Gets the Javax.Xml.Validation.Schema object specified through the DocumentBuilderFactory.Schema method.

Set method documentation [Android Documentation]

Set the Javax.Xml.Validation.Schema to be used by parsers created from this factory. When a Javax.Xml.Validation.Schema is non-null, a parser will use a validator created from it to validate documents before it passes information down to the application. When errors are found by the validator, the parser is responsible to report them to the user-specified Org.Xml.Sax.IErrorHandler (or if the error handler is not set, ignore them or throw them), just like any other errors found by the parser itself. In other words, if the user-specified Org.Xml.Sax.IErrorHandler is set, it must receive those errors, and if not, they must be treated according to the implementation specific default error handling rules. A validator may modify the outcome of a parse (for example by adding default values that were missing in documents), and a parser is responsible to make sure that the application will receive modified DOM trees. Initially, null is set as the Javax.Xml.Validation.Schema. This processing will take effect even if the DocumentBuilderFactory.Validating method returns false.

Note for implementors

A parser must be able to work with any Javax.Xml.Validation.Schema implementation. However, parsers and schemas are allowed to use implementation-specific custom mechanisms as long as they yield the result described in the specification.

It is an error to use the http://java.sun.com/xml/jaxp/properties/schemaSource property and/or the http://java.sun.com/xml/jaxp/properties/schemaLanguage property in conjunction with a Javax.Xml.Validation.Schema object. Such configuration will cause a Javax.Xml.Parsers.ParserConfigurationException exception when the DocumentBuilderFactory.NewDocumentBuilder is invoked.

Requirements

Namespace: Javax.Xml.Parsers
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8