Thank you for the rapid response and the accurate archive reference.
For anyone else who is interested in this particular functionality (i.e.
reading in a schema into an XML Schema Object Model representation), it
looks like Castor is probably a good solution (open source, full schema
support). You can find more information at:
http://castor.exolab.org/xmlschema.html
Unless, of course, the internal classes that JAXB uses to perform this
conversion are made public, in which case I would be inclined to use those
instead.
Thanks,
Brian Franklin
-----Original Message-----
From: Ryan Shoemaker - JavaSoft East [mailto:Ryan.Shoemaker_at_Sun.COM]
Sent: Monday, April 28, 2003 1:28 PM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Binding the schema for XML Schema
Franklin, Brian wrote:
> I am encountering the need more frequently to have easier programmatic
> access to an XML
> Schema in object form (not just SAX or DOM). So here are some questions
> that I have:
>
I believe the answers are:
> 1) Can JAXB bind the schema(s) for XML Schema?
No.
> 2) If not, will it ever be able to?
Probably not or no.
> 3) If no to either of the previous question, are there any other tools
that
> would be able to
> read in a schema file and represent it as a Java object?
>
> I seem to recall seeing some time back a few messages concerning this
issue.
>
> I did a bit of searching through the archives but couldn't find it.
> If someone could point me to those messages or give me a search term, I
> would appreciate it.
>
Try searching "schema object model":
http://swjscmail1.java.sun.com/cgi-bin/wa?S2=jaxb-interest&X=-&q=schema+obje
ct+model&s=&f=&a=&b=
--Ryan
> Brian Franklin
>