Thank you Joerg. But I think I didnt explain very well. Actually, the field address is a <xpto> field. I know only some parts of the XML. So, If I dont know What field can come, I can't ommit it. I'm making a processor based in 10 xmls and making sure that all of them can be serialized. But, I can receive a new xml, very similar to the others, but with a tag that is not serializable. As I'm already dealing with what is important to me, I can discard all other different types of tags.
I'm dealing with 20mb XML and have no need to map all the elements. I hope you can understand better. Thank you Em 06/03/2013 15:39, "Jörg Schaible" <[email protected]> escreveu: > Hi Amanda, > > Amanda Varella wrote: > > > Hi, > > > > as I´m having some trouble in testing the ReflectionConverter, I wil ask > > your help with this basic issue! > > > > I have a class: > > > > public class Person { > > String name; > > String age; > > > > public Person() { > > > > } > > } > > > > And the following XML > > > > <Person> > > <name>Amanda</name> > > <age>31</age> > > <address>Niteroi</addres> > > </Person> > > > > I would like to register the reflection converter so that the "address" > > field be ignored, and "name" and "age" be filled with the information of > > the XML. > > xstream.omitField(Person.class, "address"); > > Cheers, > Jörg > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
