I included the relevant part of the schema in my original post, here's a
snippet from the xml file, (the whole file is 1,000 lines long!)

  <JobPositionRequirements>
   <QualificationsRequired>
    <Qualification type = "skill" yearsOfExperience = "2" level = "4" interest
= "3">Powerpoint</Qualification>
    <Qualification type = "skill" yearsOfExperience = "1" level = "3" interest
= "3">MS FrontPage</Qualification>
    <Qualification type = "education">This position requires at least a BA or
BS in CS or equivalent experience.</Qualification>
    <Qualification type = "experience" yearsOfExperience = "3" level = "5"
interest = "4">Minimum 3 years experience in public relations.</Qualification>
   </QualificationsRequired>
  </JobPositionRequirements>


Arnaud Blandin wrote:

> Hi Ron,
>
> to exactly find what is wrong, you need to give us
> the version of Castor you are using and a simple Test case (or at least
> the XML Schema and the XML you try to unmarshall).
>
> Thanks,
> Arnaud
>
> -> -----Original Message-----
> -> From: Ron King [mailto:[EMAIL PROTECTED]]
> -> Sent: Tuesday, December 11, 2001 4:04 PM
> -> To: [EMAIL PROTECTED]
> -> Subject: [castor-dev] SourceGenerator question
> ->
> ->
> ->
> -> Hi Castor List,
> ->
> -> I get an IllegalArgumentException at runtime when trying to unmarshal an
> ->
> -> xml file. The error is caused by a value not being a valid TypeType. The
> ->
> -> value is 'skill', and here it is in the xsd file:
> ->
> -> ....
> ->  <xsd:extension base="xsd:string">
> ->    <xsd:attribute name="type">
> ->      <xsd:simpleType>
> ->        <xsd:restriction base="xsd:string">
> ->   <xsd:enumeration value="skill" />
> -> ...
> ->
> -> How can I make the SourceGenerator add it to the TypeType.java file? I
> -> can modify the file manually, and get it to work, but I don't want to do
> ->
> -> it this way.
> ->
> -> Regards,
> ->
> -> Ron
> ->
> -> -----------------------------------------------------------
> -> 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

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

Reply via email to