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


Reply via email to