Home » Xerces-J-src.2.9.1 » dom » [javadoc | source]
dom
public class: ASBuilder [javadoc | source]
java.lang.Object
   dom.ASBuilder

All Implemented Interfaces:
    org.apache.xerces.dom3.DOMErrorHandler

Deprecated!
This sample program illustrates how to use DOM3 DOMASBuilder interface to preparse ASModels and associate ASModels with an instance document to be validated.

Xerces only support preparsing XML Schema grammars, so all ASModel appears in this sample program are assumed to be XML Schema grammars. When Xerces provide more complete DOM AS support, the sample should be extended for other types of grammars.

Since XML Schema document might import other schemas: it is better to set each parsed schema (ASModel) on the parser before parsing another schema document. The schema on the parser will be used in the case it is referenced from a schema document the parser is parsing. If a schema document imports other schemas, the parser returns a container ASModel that includes the list of all schemas that are referenced plus the schema that was set on the parser. NOTE: this behavior might be changed

Field Summary
protected static final  String NAMESPACES_FEATURE_ID    Namespaces feature id (http://xml.org/sax/features/namespaces). 
protected static final  String VALIDATION_FEATURE_ID    Validation feature id (http://xml.org/sax/features/validation). 
protected static final  String SCHEMA_VALIDATION_FEATURE_ID    Schema validation feature id (http://apache.org/xml/features/validation/schema). 
protected static final  String SCHEMA_FULL_CHECKING_FEATURE_ID    Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking). 
protected static final  boolean DEFAULT_SCHEMA_FULL_CHECKING    Default Schema full checking support (false). 
Method from dom.ASBuilder Summary:
handleError,   main
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from dom.ASBuilder Detail:
 public boolean handleError(DOMError error) 
      Deprecated!
 public static  void main(String[] argv) 
      Deprecated!
    Main program entry point.