Hi, I'm using XML schema support of Castor to parse an XML Schema document and print an XML instance document conforming to it. Currently I'm able to print valid instance documents for simple schemas that follow "Russian Doll Design".
But if the schema has got some references in it(see the schema below) I'm not able to print a valid document. Is there any way to recognize the root node in a schema ? <?xml version="1.0"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.books.org" xmlns:bk="http://www.books.org" elementFormDefault="qualified"> <element name="BookStore"> <complexType> <sequence> <element ref="bk:Book" minOccurs="1" maxOccurs="unbounded"/> </sequence> </complexType> </element> <element name="Book"> <complexType> <sequence> <element ref="bk:Title"/> <element ref="bk:Author"/> </sequence> </complexType> </element> <element name="Title" type="string"/> <element name="Author" type="string"/> </schema> Thanks, -Swamy ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
