XmlSnapshot snapshot = XmlSnapshotBuilder.create(customer).includePath("placeOfBirth").includePath("orders/product").build(); Element customerAsXml = snapshot.toXml();
30313233343536
static class XmlSnapshotServiceDefaultBuilder implements XmlSnapshotService.Builder{ private final XmlSnapshotBuilder builder; public XmlSnapshotServiceDefaultBuilder(final Object domainObject) { builder = new XmlSnapshotBuilder(domainObject); }
41424344454647