14 chars · 1 line
Waiting for input
14 chars · 1 line
Waiting for input
XML closing-tag troubleshooting
The sample uses the self-closing <root/> form and then emits </root> again. Because the element was already closed, the second closing tag has no corresponding open element in the parser stack. This tool is free to use. No account or payment is required.
Last updated
The syntax <root/> opens and closes root in one token. Emitting </root> afterward creates a second close operation with no matching open element, which is a well-formedness error.
Remove the duplicate closing tag after a self-closing root.
<root/></root><root/>Common questions
No. <item/> is already closed.
Yes. Conditional branches often duplicate end tags when opening and closing markup are generated separately.
A mismatched tag closes the wrong currently open element; an extra closing tag has no matching open element at all.
Debugging a specific XML issue? Browse XML troubleshooting.