XStream
  1. XStream
  2. XSTR-691

Enable to omit ConversionException during unmarshalling

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major 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

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Pavel Cizek
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: