Registering an XML schema

In this section we shall register an XML schema in JDeveloper for XML editing. A registered schema may be used to create an instance of an XML document that conforms to the schema. To register a schema, select Tools|Preferences. In the Preferences window select XML schemas. In the XML schemas frame, click the Add button to register a schema.

Registering an XML schema

In the Add Schema window, click the Browse button to select a schema. In the Open window, select catalog.xsd (which was created in the previous section). The catalog.xsd schema gets added to the Add Schema window. Extension specifies the extension of the file type from which the registered schema may be used to create an XML document instance. We have specified Extension as .xml, which implies that the registered schema may be used to create .xml documents. If you were registering an XML schema to create XSLT files, you would specify Extension as .xslt.

Registering an XML schema

The XML schema catalog.xsd gets added to User Schemas for XML Editing. Click on the OK button to apply the schema registration.

Registering an XML schema