[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: building an object model of a XML schema

  • From: Adriano Venturini <venturi@i...>
  • To: xml-dev@l..., Ronald Bourret <rpbourret@r...>,Curt.Arnold@h..., Michael Brennan <Michael_Brennan@A...>
  • Date: Wed, 11 Jul 2001 15:29:52 +0200

building dom objects from schema
Thank you all for the answers, that suggest useful tools and a very
interesting reading, I'll use these information too, but
what I am looking for is an API that allows to read a schema, to read which
elements it defines, their types, their relationships, their attributes and
so on.
Probably is something similar to what is described in the  DOM Level 3
Abstract Schema as Arnold (thanks) suggested.
Is there any library implementing something like this ?

Bye,
Adriano



> 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:
>
>    http://www.rpbourret.com/xml/SchemaMap.htm
>
> -- Ron
>
> > 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:venturi@i...]
> >      Sent: Tuesday, July 10, 2001 7:03 AM
> >      To: xml-dev@l...
> >      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 ?
>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.