HiShah,

Xerces' API is read-only. There are no methods provided for construction
(aside from loading from schema documents), mutation or serialization.
Perhaps Eclipse XSD [1] is better suited for your needs.

Thanks.

[1] http://www.eclipse.org/modeling/mdt/?project=xsd#xsd

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

"Shah Asrani" <[EMAIL PROTECTED]> wrote on 12/08/2008 12:44:02 PM:

> Hi Michael,
> Thanks for quick response.  I can now use the API to load the schema.
> I have not digged deeper, but is it possible to generate a sub-set of
> schema from the loaded schema.
> For example, I might load a schema that has 10 elements defined, but I
> may only be interested in 2 elements.  The idea is that different user
> may need to get different schema with less elements defined, but
> document generated by them still may be validated against bigger
> schema.  Is there any API call that can be used such that given
> specific element form existing schema, another schema may be generated
> such that generated schema only shows stuff required for specific
> element.
>
> Best Regards,
>
> Shah Asrani.
>
> On Mon, Dec 8, 2008 at 10:25 AM, Michael Glavassevich
> <[EMAIL PROTECTED]> wrote:
> > "Shah Asrani" <[EMAIL PROTECTED]> wrote on 12/08/2008 10:15:22 AM:
> > Yes. Take a look at the XML Schema API [1].
> >
> >> Best Regrads,
> >>
> >> Shah Asrani
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > [1] http://www.w3.org/Submission/2004/SUBM-xmlschema-api-20040309/
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: [EMAIL PROTECTED]
> > E-mail: [EMAIL PROTECTED]
> >
> >
> >> Hi there,
> >> Is there any way that xerces can be used to read xml schema (the xsd
> >> file) and represent the xsd in some sort of tree in memory?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to