XStream
  1. XStream
  2. XSTR-594

omitField does not Omit child nodes using fromXML

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      1.4

      Description

      <person>
      <name>john doe</name>
      <birthdate>01/01/1978</birthdate>
      <addresses>
      <address type="mail">
      <street>1 test dr</street>
      <city>New York</city>
      <state>NY</state>
      <zip>11122</zip>
      </address>
      <address type="business">
      <street>1 test dr</street>
      <city>New York</city>
      <state>NY</state>
      <zip>11122</zip>
      </address>
      </addresses>
      <gender>M</gender>
      </person>

      When using fromXML and to skip the entire addresses node, I tried, xStream.omitField(Person.class, "Addresses");

      but it still gives com.thoughtworks.xstream.mapper.CannotResolveClassExceptionon 'Address/

      How to skip an entire or unknown nodes?

      Has anyone had this issue before?

        Issue Links

          People

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

            Dates

            • Created:
              Updated:
              Resolved: