switch (in.nextTag()) {
case XMLStreamConstants.START_ELEMENT:
- // FIXME: 6.0.0: why do we even need this tracker? either document it or remove it.
+ // FIXME: 7.0.0: why do we even need this tracker? either document it or remove it.
// it looks like it is a crude duplicate finder, which should really be handled via
// ChildReusePolicy.REJECT
final Set<Entry<String, String>> namesakes = new HashSet<>();
if (!added && !elementList) {
throw new XMLStreamException(String.format(
"Duplicate element \"%s\" in namespace \"%s\" with parent \"%s\" in XML input",
- xmlElementName, elementNS, parent.getSchema()), in.getLocation());
+ xmlElementName, elementNS, parentSchema), in.getLocation());
}
// We have a match, proceed with it
} else if (parentSchema instanceof ListSchemaNode) {
optMount = MountPointSchemaNode.streamAll((ListSchemaNode) parentSchema).findFirst();
} else {
- throw new XMLStreamException("Unhandled mount-aware schema " + parentSchema);
+ throw new XMLStreamException("Unhandled mount-aware schema " + parentSchema,
+ in.getLocation());
}
if (optMount.isPresent()) {
if (strictParsing) {
throw new XMLStreamException(String.format(
"Schema for node with name %s and namespace %s does not exist at %s", xmlElementName,
- elementNS, parentSchema.getPath(), in.getLocation()));
+ elementNS, parentSchema.getPath()), in.getLocation());
}
LOG.debug("Skipping unknown node ns=\"{}\" localName=\"{}\" at path {}", elementNS, xmlElementName,