XML / namespace / context

Separate XML elements by namespace

Review default namespaces, prefixes, same local names and attribute namespaces as separate boundaries. No XML upload or external parser is used.

Namespace review axes

Looking only at a local name can merge elements from different namespaces. Record the URI, prefix and attribute ownership separately.

namespace URI + local name ≠ prefix alone
caseWhat to review
default-namespaceReview the default namespace even when an element has no prefix.
prefixed-elementResolve the prefix to a URI before identifying the element.
same-local-nameKeep the same local name separate when its namespace differs.
attribute-namespaceReview attribute ownership separately from an element’s default namespace.

Review order

  1. Resolve the namespace URI from the prefix.
  2. Record the URI and local name as a pair.
  3. Review attributes separately from an element’s default namespace.
  4. Return an ambiguous mapping for confirmation instead of guessing.

This page uses synthetic fixtures only. There is no upload, external request, storage, or parser claim.