blob: 4d7346fdd2111aa5913c7538570653eb4517930c [file] [log] [blame]
Sample: XSDConfig
Author: Rashmi Banthia (
Last Updated: Oct. 18th, 2004
This sample illustrates how you can specify package names to be used for xml
namespaces. You can also specify class names to be used for individual qualified names.
To customize the package names and the class names, you'll need to create .xsdconfig file.
For eg: "filename.xsdconfig"
Schema for xsdconfig can be obtained from XMLBeans source.
For this sample:
(1) The java class names generated without the XsdConfig are:
* org.apache.xmlbeans.samples.catalog.ArticleDocument
* org.apache.xmlbeans.samples.catalog.AVeryLongDescriptionElementDocument
* org.apache.xmlbeans.samples.catalog.CatalogDocument
* org.apache.xmlbeans.samples.catalog.JournalDocument
( uses above mentioned classes)
(2) The java class names generated with XsdConfig are:
* com.catalog.XmlArticleDocumentBean
* com.catalog.XmlShortItemBean
* com.catalog.XmlCatalogDocumentBean
* com.catalog.XmlJournalDocumentBean
( uses above mentioned classes)
When you run this sample, you will see it print all the element values from XML document
instance (with and without XsdConfig file).
To try out this sample:
1. Set XMLBEANS_HOME in your environment
2. Ant must be on your PATH
3. To compile the schemas and sample source, run "ant build"