Javax.Xml.Datatype.DatatypeFactory Class

See Also: DatatypeFactory Members

Syntax

[Android.Runtime.Register("javax/xml/datatype/DatatypeFactory", DoNotGenerateAcw=true)]
public abstract class DatatypeFactory : Java.Lang.Object

Remarks

Factory that creates new javax.xml.datatypeObjects that map XML to/from Java Objects.

DatatypeFactory.NewInstance is used to create a new DatatypeFactory. The following implementation resolution mechanisms are used in the following order:

  1. If the system property specified by DatatypeFactory.DatatypefactoryProperty, "javax.xml.datatype.DatatypeFactory", exists, a class with the name of the property's value is instantiated. Any Exception thrown during the instantiation process is wrapped as a Javax.Xml.Datatype.DatatypeConfigurationException.
  2. If the file ${JAVA_HOME}/lib/jaxp.properties exists, it is loaded in a Java.Util.PropertiesObject. The PropertiesObject is then queried for the property as documented in the prior step and processed as documented in the prior step.
  3. The services resolution mechanism is used, e.g. META-INF/services/java.xml.datatype.DatatypeFactory. Any Exception thrown during the instantiation process is wrapped as a Javax.Xml.Datatype.DatatypeConfigurationException.
  4. The final mechanism is to attempt to instantiate the Class specified by DatatypeFactory.DatatypefactoryImplementationClass, "javax.xml.datatype.DatatypeFactoryImpl". Any Exception thrown during the instantiation process is wrapped as a Javax.Xml.Datatype.DatatypeConfigurationException.

Note that you must supply your own implementation (such as Xerces); Android does not ship with a default implementation.

[Android Documentation]

Requirements

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