I have been trying to do the same and it is possible. But I have to explicitly
check things like the content model of the complexType, whether it is a
sequence or a group, then check whether the group has a seqeunce or a choice
and so on and so forth. It would be nice to have a data model that represents
all this and so using an API one could just access the content model directly.
Thanx for the response. For now I shall continue developing some form of a
layer on top of the DOM for easy access to the schema components and see how it
turns out to be.

Cheers,
Chetan
Dane Foster wrote:

> A Schema document is a valid XML document therefore there is nothing to stop
> you from using a DOM parser to create a DOM of the schema.  You can then use
> the DOM API to extract information or modify the schema.
>
> Dane Foster
> Equity Technology Group, Inc
> http://www.equitytg.com.
> 954.360.9800
> ----- Original Message -----
> From: "Chetan Chudasama" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 11, 2001 2:49 PM
> Subject: Re: Schema processor
>
> Andrew,
> Thanx for the info. I have looked at castor but what I was
> looking for was some model that is available in memory like
> the DOM and can be accessed  through some API. My
> requirement is not to verify any XML against the schema but
> only to be able to parse the schema and access it like the
> DOM. Castor provides a schema complier which generates
> classes and then there is no API to access the classes. For
> instance I would like to get the informartion on a
> complexType defined in a particular namespace. I am not sure
> how I can easily do this using Castor.  If you have worked
> and can give me some more information that will help.
>
> I appreciate your help.
>
> Cheers,
> Chetan
>
> Andrew Fawcett wrote:
>
> >
> >
> > You could also look at http://castor.exolab.org/, they
> > have any excellent XML Schema object model. :-)
> >
> > -----Original Message-----
> > From: Chetan Chudasama
> > [mailto:[EMAIL PROTECTED]
> > Sent: 10 April 2001 20:37
> > To: [EMAIL PROTECTED]
> > Subject: Schema processor
> >
> > Hi,
> >
> > I would like to know if there is a schema processor
> > available under Xerces. I want to parse only the schema
> > files and have some API for accessing that information. I
> > know there is one from Oracle, but wanted to know if there
> >
> > is one available with Xerces. If not then will it be
> > available in the future?
> >
> > Thanx,
> > Chetan
> >
> > --
> > Chetan Chudasama
> > Fujitsu Network Communications
> > Call: (408) 895 1707
> > Email: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > -------------------------------------------------------------------
> >
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
>
> --
> Chetan Chudasama
> Fujitsu Network Communications
> Call: (408) 895 1707
> Email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Chetan Chudasama
Fujitsu Network Communications
Call: (408) 895 1707
Email: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to