Hello Nagaraj, If you're looking at an extension, the particle returned from the XSComplexTypeDefinition should contain a sequence XSModelGroup with its first particle being the same as the XSParticle from the base type.
Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Nagaraj Mandya <nman...@gmail.com> wrote on 05/04/2010 07:27:55 AM: > Hello, > I am trying to use Xerces-J's XML schema API to parse and analyze > a schema. As I am iterating through the XSModel, I get the > XSParticle from an XSComplexTypeDefinition and iterate over its > terms. I find that I am getting the XSElementDeclaration objects for > all elements defined in both in the current complex type definition > and the ones in its base types. > > How can I distinguish which elements are from the current complex > type and which ones are from the base types? Thanks. > -- > Regards, > Nagaraj,