Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
- duplicates
-
XSTR-592 omitField only ignores field on deserialization if field non-existent
See linked issue.