Hi All, I am new to Castor ........
I am able to create schema with Schema schema = xi2s.createSchema(inputSource); and after writing it in a file it gives me : <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> " xmlns:xsd="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> "> <element name="profile"> <complexType> <sequence> <element name="name" type="string"/> <element name="lastname" type="string"/> <element name="leavetype" type="string"/> <element name="leavesavail" type="integer"/> <element name="totalleaves" type="integer"/> </sequence> </complexType> </element> </schema> I want to get the list of elements under <profile> tag , that is name , lastname , leavetype...... I tried with : for (Enumeration e = schema.getElementDecls(); e.hasMoreElements();) {} but only able to access the top element ... HOW can i traverse through all the elements ? Thanks in advance . Regards Anupam Das Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

