You are welcome.

Werner

Brett McLaughlin wrote:

On Jan 15, 2008, at 3:06 PM, Werner Guttmann wrote:

Brett,

Umarshaller.unmarshal(Class, Reader) is a *static* method, and as such your mappingfile will simply be ignored.

Try code similar to the following code fragment:

Unmarshaller unmarshaller = new Unmarshaller(Book.class);
unmarshaller.setMapping(mapping);
Book book = (Book) unmarshaller.unmarshal(raeder);

Oh, uggh. I was calling the method on my instance variable, but yup, it was jumping right through to the static method. Sometimes I hate Java's warning system.

Okay, life is good again. Thanks, Werner, and all.

Thanks
---
Brett McLaughlin
Series Editor, Head First
O'Reilly Media, Inc.

Phone: (972) 722-6252
Fax:      (972) 692-7958
E-Mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to