When we are faking the root Notification node, we should also be making
sure we actually match on QName.
Change-Id: Ifbe289b7326dae6a522659d7c6378785dd2ae0ec
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
- final var schema = tracker.startContainerNode(name);
- startElement(schema.getQName());
+ tracker.startContainerNode(name);
+ startElement(name.getNodeType());
}
@Override
LOG.debug("Enter container {}", name);
final ContainerLike schema;
- if (schemaStack.isEmpty() && root instanceof NotificationDefinition notification) {
+ if (schemaStack.isEmpty() && root instanceof NotificationDefinition notification
+ && name.getNodeType().equals(notification.getQName())) {
// Special case for stacks initialized at notification. We pretend the first container is contained within
// itself.
// FIXME: 8.0.0: factor this special case out to something more reasonable, like being initialized at the