Setting the environment
In JDeveloper 11g, create an application and a project. Select File|New, and in the New Gallery window select Categories|General and Items|Generic Application, and click on OK. In the Create Generic Application window specify an Application Name, JAXB
, and click on Next. In the Name your Generic project window specify a Project Name, JAXB
, and click on Finish.
An application and a project get added to the Application Navigator. In the project, create an XML schema with File|New. In the New Gallery window select Categories|General|XML and Items|XML Schema, and click on OK.
In the Create XML Schema window specify a File Name, catalog.xsd
, and click on OK. An XML schema gets added to the JAXB
project.
We need to add the Oracle XML Parser v2 library, which contains the Java API for XML Processing (JAXP) and the XML parsers. Also add the Xml.jar JAR file, which contains the javax.xml.bind
package API. To add the Oracle XML Parser v2 library select Tools|Project Properties...