javax.xml.validation
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThe primary classes in Java's XML validation API are \u003ccode\u003eSchema\u003c/code\u003e, \u003ccode\u003eSchemaFactory\u003c/code\u003e, \u003ccode\u003eValidator\u003c/code\u003e, and \u003ccode\u003eValidatorHandler\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSchema\u003c/code\u003e represents the grammar, \u003ccode\u003eSchemaFactory\u003c/code\u003e creates \u003ccode\u003eSchema\u003c/code\u003e objects, \u003ccode\u003eValidator\u003c/code\u003e checks documents against \u003ccode\u003eSchema\u003c/code\u003e, and \u003ccode\u003eValidatorHandler\u003c/code\u003e performs validation on SAX streams.\u003c/p\u003e\n"],["\u003cp\u003eAlthough included in Java 5, \u003ccode\u003eSchemaFactoryLoader\u003c/code\u003e has been removed and should not be used.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTypeInfoProvider\u003c/code\u003e grants access to type information determined during validation by \u003ccode\u003eValidatorHandler\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content outlines six classes related to XML validation. `Schema` represents an immutable grammar, while `SchemaFactory` creates `Schema` objects, serving as the validation API's entry point. `Validator` checks XML documents against a `Schema`. `ValidatorHandler` is a streaming validator for SAX streams. `TypeInfoProvider` provides type information from the `ValidatorHandler`. Lastly, `SchemaFactoryLoader` was removed before finalization.\n"],null,["# javax.xml.validation\n\n### Classes\n\n|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Schema](../../../../reference/javax/xml/validation/Schema.html) | Immutable in-memory representation of grammar. |\n| [SchemaFactory](../../../../reference/javax/xml/validation/SchemaFactory.html) | Factory that creates [Schema](../../../../reference/javax/xml/validation/Schema.html) objects. Entry-point to the validation API. |\n| [SchemaFactoryLoader](../../../../reference/javax/xml/validation/SchemaFactoryLoader.html) | This class was removed from JAXP 1.3 before it was finalized but was mistakenly included in Java 5. |\n| [TypeInfoProvider](../../../../reference/javax/xml/validation/TypeInfoProvider.html) | This class provides access to the type information determined by [ValidatorHandler](../../../../reference/javax/xml/validation/ValidatorHandler.html). |\n| [Validator](../../../../reference/javax/xml/validation/Validator.html) | A processor that checks an XML document against [Schema](../../../../reference/javax/xml/validation/Schema.html). |\n| [ValidatorHandler](../../../../reference/javax/xml/validation/ValidatorHandler.html) | Streaming validator that works on SAX stream. |"]]