Thomas O'Neill wrote:
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?
You could try StringReader: http://java.sun.com/j2se/1.4.2/docs/api/java/io/StringReader.html
Stein
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
