Stanimir Stamenkov <[EMAIL PROTECTED]> writes:

> /Kendall Shaw/:
>
>> I want to parse a schema, to get at the content model of
>> elements. Basing my experimentation on the XSQuery example that comes
>> with Xerces, I have an XSElementDeclaration, but I don't see how to go
>> further? I can get the type definition:
>> XSTypeDefinition td = el.getTypeDefinition();
>> I can determine if it is a simple or complex type.
>> Now what?
>> How do I get a ModelGroup?
>
> Further you determine if the content type of the complex type is
> element-only or mixed, then you you know its model group particle is
> not null. The model group is the term of that particle.
>
> XSComplexTypeDefinition.getParticle()
> XSParticle.getTerm()
>
> There's no direct model group property of the complex type because it
> could have min/max occurrence quantifiers, therefore it is a particle.

Where do I get the XSComplexTypeDefinition from?

Kendall


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to