Javax.Xml.Validation.SchemaFactory.ResourceResolver Property
Gets the current Org.W3c.Dom.LS.ILSResourceResolver set to this Javax.Xml.Validation.SchemaFactory.

Syntax

[get: Android.Runtime.Register("getResourceResolver", "()Lorg/w3c/dom/ls/LSResourceResolver;", "GetGetResourceResolverHandler")]
[set: Android.Runtime.Register("setResourceResolver", "(Lorg/w3c/dom/ls/LSResourceResolver;)V", "GetSetResourceResolver_Lorg_w3c_dom_ls_LSResourceResolver_Handler")]
public abstract Org.W3c.Dom.LS.ILSResourceResolver ResourceResolver { get; set; }

See Also

SchemaFactory.ErrorHandler

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Gets the current Org.W3c.Dom.LS.ILSResourceResolver set to this Javax.Xml.Validation.SchemaFactory.

Set method documentation [Android Documentation]

Sets the Org.W3c.Dom.LS.ILSResourceResolver to customize resource resolution when parsing schemas. Javax.Xml.Validation.SchemaFactory uses a Org.W3c.Dom.LS.ILSResourceResolver when it needs to locate external resources while parsing schemas, although exactly what constitutes "locating external resources" is up to each schema language. For example, for W3C XML Schema, this includes files <include>d or <import>ed, and DTD referenced from schema files, etc. Applications can call this method even during a Javax.Xml.Validation.Schema is being parsed. When the Org.W3c.Dom.LS.ILSResourceResolver is null, the implementation will behave as if the following Org.W3c.Dom.LS.ILSResourceResolver is set:

java Example

 class DumbDOMResourceResolver implements LSResourceResolver {
     public LSInput resolveResource(
         String publicId, String systemId, String baseURI) {

         return null; // always return null
     }
 }
 
If a Org.W3c.Dom.LS.ILSResourceResolver throws a Java.Lang.RuntimeException (or instances of its derived classes), then the Javax.Xml.Validation.SchemaFactory will abort the parsing and the caller of the newSchema method will receive the same Java.Lang.RuntimeException. When a new Javax.Xml.Validation.SchemaFactory object is created, initially this field is set to null. This field will NOT be inherited to Javax.Xml.Validation.Schemas, Javax.Xml.Validation.Validators, or Javax.Xml.Validation.ValidatorHandlers that are created from this Javax.Xml.Validation.SchemaFactory.

Requirements

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