On Thursday, June 5, 2003, at 06:55 PM, Karl Mueller wrote:

I would really appreciate any "enlightenment" anyone can give me on this?

I took basically the same approach as you.

Concerning the processing of typedefinitions the following code worked for me:

<snip>
XSElementDeclaration elementDeclaration = ..........
....

XSTypeDefinition typeDef = elementDeclaration.getTypeDefinition();
short typeCategory = typeDef.getTypeCategory();
if(typeCategory == XSTypeDefinition.COMPLEX_TYPE)
{
XSComplexTypeDefinition complexType = (XSComplexTypeDefinition)typeDef;
// Process ComplexTypeDefinition
}
else
{
XSSimpleTypeDefinition simpleType = (XSSimpleTypeDefinition)typeDef;
// Process SimpleType Definition
}


<snip>


Christoph Henrici Senior Software Architect Celeris AG Studbachstr. 13b CH-8340 Hinwil

Tel.:  +41 1 9385744
Fax:   +41 1 938 5721
Email: [EMAIL PROTECTED]
Web:   www.celeris.net



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



Reply via email to