I have two classes:
class ObjectCollection {
Object[] collection;
}
and
class Object extends AnotherObject {
}
Now, on serializing these with XStream, it gets everything right, but it also adds data from AnotherObject to each Object. Is there a way to tell XStream to ignore elements from the extended class not wanted?