AI-generated Key Takeaways
-
The primary classes in Java's XML validation API are
Schema,SchemaFactory,Validator, andValidatorHandler. -
Schemarepresents the grammar,SchemaFactorycreatesSchemaobjects,Validatorchecks documents againstSchema, andValidatorHandlerperforms validation on SAX streams. -
Although included in Java 5,
SchemaFactoryLoaderhas been removed and should not be used. -
TypeInfoProvidergrants access to type information determined during validation byValidatorHandler.
Classes
| Schema | Immutable in-memory representation of grammar. |
| SchemaFactory | Factory that creates Schema objects. Entry-point to
the validation API. |
| SchemaFactoryLoader | This class was removed from JAXP 1.3 before it was finalized but was mistakenly included in Java 5. |
| TypeInfoProvider | This class provides access to the type information determined
by ValidatorHandler. |
| Validator | A processor that checks an XML document against |
| ValidatorHandler | Streaming validator that works on SAX stream. |