Keith,

Thanks for your reply, my original message was not very clear.

I have an "introspection-like" API that we use to wrap dynamic object
models. What I want to do is to use Castor to parse an XML schema and return
the JClass descriptions that I will then use to declare the classes and
fields to my API (I will then use JDOM as the way of reading the XML). The
idea is that I can present my XML and XML schema just like any other object
model using my own API (which is very similar to JClass).

It seems that I can almost do this by calling the SourceGenerator and
modifying it so that it does not write out the classes and just returns the
list of JClass's that it built?

What I was wondering was whether it would be possible to make some of the
APIs public so that I could manage this by derivation of your classes
without having to modify the original source code?

Thanks again and sorry for the first message which was not clear.

Julian

----- Original Message -----
From: "Keith Visco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 9:56 PM
Subject: Re: [castor-dev] XML Schema to JDOM


>
>
> JDOM is a *generic* XML tree. You don't need Castor to create
> descriptors for you
> in order to read an XML instance using JDOM.
>
> --Keith
>
> Julian Payne wrote:
> >
> > I would like to use Castor to read XML and an associated XML schema and
map
> > this onto JDOM rather than generated java classes. Is it possible to use
the
> > front-end of Castor to read an XML schema JUST to create the
> > ClassDescriptors?
> >
> > It would appear from the source that the neccessary methods and classes
are
> > not public?
> >
> > Thanks in advance for your help,
> >
> > Julian Payne
> > Technical Director
> > ILOG S.A.
> > Sophia Antipolis
> > France
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-dev
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to