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
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:
>
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
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
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