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

Reply via email to