I currently use a piece of XML like the following
Frank Smith
100023412
1
I asked for exactly the same problem.
How can I make a XStreamMarshaller skip unknown binding?
And I got a comment linking this post.
I solved the my problem by extending the XStreamMarshaller
.
public class ExtendedXStreamMarshaller extends XStreamMarshaller {
@Override
protected void configureXStream(final XStream xstream) {
super.configureXStream(xstream);
xstream.ignoreUnknownElements(); // will it blend?
}
}