XML error index

XML Troubleshooting

Find XML well-formedness problems involving tags, attributes, entities, namespaces, declarations, CDATA, comments, and root structure.

Diagnostic workflow

How to troubleshoot XML problems

XML parsers stop on strict well-formedness rules, so begin at the first reported location and verify the surrounding element boundaries. A single missing quote, mismatched tag, or unescaped character can make later markup look broken even when those later elements are correct.

  • Verify opening and closing tag names, nesting order, and the requirement for exactly one document root before checking application-specific XML rules.
  • Inspect attributes for quotes, duplicate names, missing equals signs, and namespace prefixes that do not have an in-scope declaration.
  • Check text and attribute values for raw ampersands, less-than signs, malformed character references, or unfinished CDATA and comment sections.

Browse focused fixes

Common XML problems

24 troubleshooting pages

Understand the underlying concepts

1 related guides