Thanks Keith.

I'll check the Castor site on how to do this.

Have a nice weekend. :)



At 21:53 03/06/13 -0500, you wrote:

Hi Tek,

You might be able to use a binding file and bind it to an int or short
so that you don't have to manually do that yourself.

--Keith

tek1 wrote:
>
> Hello.
>
> I tried the SourceGenerator on a .xsd file and it generated all of
> the .java files (awesome!), but the type "UnsignedByte" appeared in
> the .java files.
>
> As this is an unrecognized Java type, what is the workaround?  Can I just
> change the type in the .java files to "int"?  In this case, will I still
> need a mapping.xml file to map the .xml data to the Java objects?  or can I
> simply call:
>
> Reader reader = new FileReader("test.xml");
> Person person = (Person)Unmarshaller.unmarshal(Person.class, reader);
>
> (example from Castor website)
>
> ?
>
> Thank you.
>
> -----------------------------------------------------------
> 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