Re: How to get minOccurs and maxOccurs values from Element Declarations

2007-11-29 Thread Stella Lok
I understand now, thanks a lot for your kind help! I had been stumped by this. Sincerely, Stella On Nov 30, 2007 2:37 AM, Michael Glavassevich <[EMAIL PROTECTED]> wrote: > Hi Stella, > > "Stella Lok" <[EMAIL PROTECTED]> wrote on 11/29/2007 12:42:13 PM: > > > Hi Ed and Michael, > > > > Thank you

Re: How to get minOccurs and maxOccurs values from Element Declarations

2007-11-29 Thread Michael Glavassevich
Hi Stella, "Stella Lok" <[EMAIL PROTECTED]> wrote on 11/29/2007 12:42:13 PM: > Hi Ed and Michael, > > Thank you very much for taking the time to explain the structure to > me! I am still unclear on 2 specific cases though, and that is when > an element declaration is a simple type. > > Case 1: >

Re: How to get minOccurs and maxOccurs values from Element Declarations

2007-11-29 Thread Stella Lok
Hi Ed and Michael, Thank you very much for taking the time to explain the structure to me! I am still unclear on 2 specific cases though, and that is when an element declaration is a simple type. Case 1: I can't figure out how to obtain the minOccurs and maxOccurs values

RE: How to get minOccurs and maxOccurs values from Element Declarations

2007-11-29 Thread Wax, Ed
Stella, It is not as straight forward as one might image. Assuming you have navigated to a complex type: XSComplexTypeDefinition complex; // is set to the current complex type. XSParticle p = complex.getParticle(); XSTerm term = p.getTerm(); XSModelGroup xm = (XSModelGroup)term; XSOb

Re: How to get minOccurs and maxOccurs values from Element Declarations

2007-11-29 Thread Michael Glavassevich
Hi Stella, You're asking for something you can't get. Consider that one element declaration could be used in multiple places: ... ... It's the particle (i.e. the usage of the element declaration) [1] which holds the occurrence information not the element declaration itsel