[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building an object model of a XML schema
- From: Ronald Bourret <email@example.com>
- To: Michael Brennan <Michael_Brennan@allegis.com>
- Date: Tue, 10 Jul 2001 12:43:13 -0700
In addition to Castor, there are JAXB (http://java.sun.com/xml/jaxb) and
Zeus (http://zeus.enhydra.org/index.html). Oracle has a class generator
that runs off DTDs, and I think IBM does, too. Quick
(http://jxquick.sourceforge.net/) does similar work, but has a
proprietary schema language (I think). Note that all of these generate
classes at design time, not run time. Some (most?) then provide code for
marshalling XML to objects and vice versa.
You might also be interested in the following paper, which describes the
mapping from the schema data model to object models:
> Michael Brennan wrote:
> I haven't really seen much for this. You can check out Castor, though:
> http://castor.exolab.org/ It's the one tool I know of for this sort
> of thing. If you find anything else, let me know.
> -----Original Message-----
> From: Adriano Venturini [mailto:firstname.lastname@example.org]
> Sent: Tuesday, July 10, 2001 7:03 AM
> To: email@example.com
> Subject: building an object model of a XML schema
> Hi all,
> I have defined a set of schemas that model the data model of
> our project.
> We use the schemas for validating purpose, but we need also
> to programmatically read the schema and to understand the
> structure of a document compliant with the schema.
> For example, given a schema model that contains a
> LODGING_SERVICE element that contains three elements: NAME,
> LOCATION and COST,
> I need an API that returns this structure, along with the
> datatypes of the NAME, the LOCATION and the COST fields
> (i.e. like a data dictionary of an RDBMS ).
> Obviously I could use an XML parser, but I would implement a
> very limitated component.
> Is there any library that read a schema and provide an
> object model of the schema itself ?