Pavel Cizek created XSTR-691:
--------------------------------

             Summary: Enable to omit ConversionException during unmarshalling
                 Key: XSTR-691
                 URL: https://jira.codehaus.org/browse/XSTR-691
             Project: XStream
          Issue Type: New Feature
          Components: Converters
            Reporter: Pavel Cizek
            Assignee: Joerg Schaible


Implement a method of {{com.thoughtworks.xstream.XStream}} for setting some 
property that enables to ignore any extra incoming xml elements, not present in 
the mapping bean and not aliased.

For instance:
{code}
public class LetterHolder {
  private String A;
  private String B;

  // getters and setters ...
}

<LetterHolder>
<A>This is letter A</A>
<B>B</B>
<C>C</C>
</LetterHolder>
{code}

After setting this new property calling of {{XStream#unmarshal(...)}} will not 
throw {{com.thoughtworks.xstream.converters.ConversionException: C : C : C : 
C}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a 
href="http://xircles.codehaus.org/manage_email";>http://xircles.codehaus.org/manage_email</a>
</p>

Reply via email to