Hi,

are you using the Source Generator to generate classes from 
your schema to help Castor to unmarshal your XML? 
if not, you should.
if yes, send us your test case (XML schema, XML instance, code).

Arnaud

-> -----Original Message-----
-> From: Bhaskar_V [mailto:[EMAIL PROTECTED]]
-> Sent: Tuesday, September 25, 2001 6:43 AM
-> To: [EMAIL PROTECTED]
-> Subject: [castor-dev] hi
-> 
-> 
-> hi,
->      I am facing a problem when i am trying to parse my xml file. My
-> schema is something like this.. 
-> 
-> <xs: simpletype name="a">
->      <xs:restriction base="xs:string">
->              <xs:enumeration value="OC">
->      </xs:restriction>
-> </xs:simpletype>
-> <xs: simpletype name="b">
->      <xs:restriction base="xs:string">
->              <xs:enumeration value="x">
->              <xs:enumeration value="y">
->              <xs:enumeration value="z">
->      </xs:restriction>
-> </xs:simpletype>
-> 
-> I used Castor's source generator to generate my code. After 
-> generating when
-> i tried to unmarshall my xml file, i am getting an error message 
-> "
-> org.exolab.castor.mapping.MappingException: Nested error:
-> org.exolab.castor.mapp
-> ing.MappingException: The Java class a is not constructable -- 
-> it does not
-> contain a default public constructor
-> "
-> 
-> I am using mapping.xml to map my class and schema.
-> If i introduce default constructor it throws me error message saying
-> "org.xml.sax.SAXException: Illegal Text data found as child of: a
->   value: "OC"{file: [not available]; line: 6; column: 51}"
-> even though i am passing a valid data. Can any one help me in 
-> this issue. 
-> 
-> Regards,
-> V.Bhaskar.
-> 
-> ----------------------------------------------------------- 
-> If you wish to unsubscribe from this mailing, send mail to
-> [EMAIL PROTECTED] with a subject of:
->      unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to