Use the ComplexType#enumerate method, you'll get an enumeration of all
the element declarations and, if any, the anonymous group definitions
(sequence, choice, all).

--Keith

> amol kat wrote:
> 
> Question in a nutshell:
> How do i get the elements (elementDecl objects) within a ComplexType
> if i dont know their names?
> 
> I am trying to navigate a schema document in my application using
> castor. (my first stint with castor)
> I can get the top level elements by doing schema.getElementDecls() and
> get the complex type by doing getComplexType()
> But lets say there are a couple of element declarations in the complex
> type. how do i get those elements??
> ComplexType has got getElementDecl( name ) but no getElementDecls().
> How do i get the elementDecl objects within the complex types if i
> dont know their names?
> 
> Thanks,
> amol

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

Reply via email to