Re: [castor-dev] Getting the childeren from ElementDec

2004-04-12 Thread Keith Visco
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();

[castor-dev] Getting the childeren from ElementDec

2004-04-11 Thread Ali, Haneef
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