Thanks again!
I had just got that to work right before I recieved you email
StringReader was the solution.
Your awesome for being so helpful to a newbie!
-Tom
On Fri, 07 Jan 2005 19:19:18 +0100, Stein M. Hugubakken <[EMAIL PROTECTED]>
wrote:
>
> 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
>
--
Tom O'Neill
[EMAIL PROTECTED]
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user