XML-002: Mismatched Closing Tag - XML
Summary
- Rule ID:
XML-002 - Severity:
MEDIUM - Category:
XML - Normative Level:
SHOULD - Auto-Fix:
Yes (unsafe) - Verified On:
2026-10-17
Applicability
- Tool:
all - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://www.w3.org/TR/xml/
- https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
- https://developers.openai.com/api/docs/guides/prompt-engineering
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
<outer>
<inner>
Content here.
</outer>
</inner>
Valid
<outer>
<inner>
Content here.
</inner>
</outer>