Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.4.5
-
Component/s: Converters
-
Labels:None
Description
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:
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>
After setting this new property calling of XStream#unmarshal(...) will not throw com.thoughtworks.xstream.converters.ConversionException: C : C : C : C.
Issue Links
- duplicates
-
XSTR-30 User defined error handling
XSTR-30 describes a generalized functionality using a callback. For this issue a simpler solution is possible, e.g. regular expression matching an element name that is unknown.