| Package | Description | 
|---|---|
| javax.xml.bind | 
        Provides a runtime binding framework for client applications including
        unmarshalling, marshalling, and validation capabilities. | 
| javax.xml.bind.helpers | 
        JAXB Provider Use Only: Provides partial default implementations for 
        some of the javax.xml.bind interfaces. | 
| javax.xml.parsers | 
                Provides classes allowing the processing of XML documents. | 
| javax.xml.validation | 
                    This package provides an API for validation of XML documents. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Schema | Binder. getSchema()Gets the last  Schemaobject (including null) set by theBinder.setSchema(Schema)method. | 
| Schema | Marshaller. getSchema()Get the JAXP 1.3  Schemaobject
 being used to perform marshal-time validation. | 
| Schema | Unmarshaller. getSchema()Get the JAXP 1.3  Schemaobject
 being used to perform unmarshal-time validation. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | Binder. setSchema(Schema schema)Specifies whether marshal, unmarshal and update methods
 performs validation on their XML content. | 
| void | Marshaller. setSchema(Schema schema)Specify the JAXP 1.3  Schemaobject that should be used to validate subsequent marshal operations
 against. | 
| void | Unmarshaller. setSchema(Schema schema)Specify the JAXP 1.3  Schemaobject that should be used to validate subsequent unmarshal operations
 against. | 
| Modifier and Type | Method and Description | 
|---|---|
| Schema | AbstractUnmarshallerImpl. getSchema() | 
| Schema | AbstractMarshallerImpl. getSchema() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AbstractUnmarshallerImpl. setSchema(Schema schema) | 
| void | AbstractMarshallerImpl. setSchema(Schema schema) | 
| Modifier and Type | Method and Description | 
|---|---|
| Schema | DocumentBuilder. getSchema()Get a reference to the the  Schemabeing used by
 the XML processor. | 
| Schema | SAXParser. getSchema()Get a reference to the the  Schemabeing used by
 the XML processor. | 
| Schema | DocumentBuilderFactory. getSchema()Gets the  Schemaobject specified through
 theDocumentBuilderFactory.setSchema(Schema schema)method. | 
| Schema | SAXParserFactory. getSchema()Gets the  Schemaobject specified through
 theSAXParserFactory.setSchema(Schema schema)method. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DocumentBuilderFactory. setSchema(Schema schema)Set the  Schemato be used by parsers created
 from this factory. | 
| void | SAXParserFactory. setSchema(Schema schema)Set the  Schemato be used by parsers created
 from this factory. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Schema | SchemaFactory. newSchema()Creates a special  Schemaobject. | 
| Schema | SchemaFactory. newSchema(File schema)Parses the specified  Fileas a schema and returns it as aSchema. | 
| Schema | SchemaFactory. newSchema(Source schema)Parses the specified source as a schema and returns it as a schema. | 
| abstract Schema | SchemaFactory. newSchema(Source[] schemas)Parses the specified source(s) as a schema and returns it as a schema. | 
| Schema | SchemaFactory. newSchema(URL schema)Parses the specified  URLas a schema and returns it as aSchema. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.