Thank you Jörg, * * I think the ReflectionConverter won´t work because I don´t have knowledge of all attributes I would like to ignore. I think this could be a quite common need: to ignore unknown attributes. Do you know if there is a converter that already implement this?
By the way, I´m gonna take a look at the converter tutorial Regards Amanda * * * * On Mon, Feb 25, 2013 at 2:33 PM, Jörg Schaible <[email protected]>wrote: > Hi Amanda, > > Amanda Varella wrote: > > > Hi, > > > > I have a gigantic XML and I'm only interested in some parts of it. So, it > > wouldn't be necessary to map the whole class. > > If I ommit some attributes, I got an error. > > > > Is there any way I can do this? > > If you use the ReflectionConverter, you will have to configure XStream with > omitField calls to ignore the elements to ignore. Alternatively you may > write your own custom converter that skips over the uninteresting elements. > See the converter tutorial, it's quite easy. > > - Jörg > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Amanda Varella
