By adding XML schemas to your project, you can more easily write code that handles XML based on that schema. In WebLogic Workshop, you can create a "schema project" that is specifically designed to contain schema (XSD) files. You can specify that WebLogic Workshop compile schemas inside the project, generating XMLBeans types specifically designed to handle XML based on the schema.
Note: You use compiled XML Schema when creating XQuery maps. For more information, see Introduction to XQuery Maps. Also, if you're familiar with Ant, an XML-based tool for automating tasks, you may be interested in the xmlbean Ant task.
When you compile schema, you create a JAR file containing the generated types. The new JAR file will have the same name as your schema project, and will be placed in the Libraries folder in the Application window. As libraries, the generated types are on your application's classpath, and so are ready for use.
After compiling schema for XML used by your application, you can:
XML schema is a means for describing what a specific XML document should look like. For more information about XMLBeans, see Getting Started with XMLBeans.
If you don't have a schema, but would like to handle your XML using the types generated from schema, you can generate a schema from an XML instance document. For more information, see How Do I: Generate Schema from an XML Instance Document?
WebLogic Workshop will create a new schema project and add it as a subfolder of your application.
You can also drag the XSD file to the schema project.
WebLogic Workshop will import the schema.