FileExamples
CriticalXML · .xml

XML Mismatched Tags — Opening/Closing Tag Name Mismatch

An XML file where opening and closing tags have different names, violating XML well-formedness rules.

Why It Fails

XML is case-sensitive and requires exact tag name matches. <Title> closed with </title> is invalid. This commonly occurs during manual editing or find-and-replace operations.

Broken Example

<?xml version="1.0"?>
<Document>
  <Title>Report</title>
  <Body>Content</body>
</Document>

Expected Error Behavior

Parser throws 'tag mismatch' or 'expected end tag Name' error with the line number of the mismatch.

Affected Software

All XML parsersXHTML validatorsSVG renderersSOAP processors

How to Fix

Match tag names exactly including case. Use XML-aware editors that auto-complete closing tags.