Re: Using JAXB with tomcat

2008-11-12 Thread Rafael Cunha de Almeida
On Wed, 12 Nov 2008 09:09:01 +0100 <[EMAIL PROTECTED]> wrote: > I am not sure if this works and it is probably not a nice solution, but maybe > you can do something like > > BoOcorrenciaPolicial bo = (BoOcorrenciaPolicial) > unmarshaller.unmarshal(new File(XML_DIR + id + ".xml"));

RE: Using JAXB with tomcat

2008-11-12 Thread Torsten.Romer
I am not sure if this works and it is probably not a nice solution, but maybe you can do something like BoOcorrenciaPolicial bo = (BoOcorrenciaPolicial) unmarshaller.unmarshal(new File(XML_DIR + id + ".xml")); Class clazz = bo.getClass(); Field field = clazz.getDeclaredField("his