You have to get the ComplexType from the ElementDecl.
XMLType type = element.getType();
if (type.isComplexType()) {
ComplexType cType = (ComplexType)type;
Enumeration enum = cType.enumerate();
while (enum.hasMoreElements()) {
Structure st = (Structure) enum.nextElement();
Hi,
How to get the children from org.exolab.castor.xml.schema.ElementDecl
object. It has "hasChildren" method, but no method to get the children.
Regards,
Haneef
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 8:29 AM
To: [EMAIL PROTECT