> Does this help:
>
> InputSource is = new
> InputSource(this.getClass().getClassLoader().getResourceAsStream("user.xml"));
> User testuser = (User) Unmarshaller.unmarshal(User.class, is);
>
> Stein
Thanks for the fast reply Stein that worked perfectly! I have another
question if you would be so kind. Is it possible to unmarchall from a
string that contains XML?
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user