I configured an XmlMapper with the parser feature for rejecting duplicates, as such:
XmlMapper mapper = new XmlMapper();
mapper.configure(JsonParser.Feature.STRICT_DUPLICATE_DETECTION, true);
and the XmlMapper does not seem to support the feature as duplicates were allowed through.