28 chars · 1 line
Waiting for input
28 chars · 1 line
Waiting for input
XML tag troubleshooting
The preloaded XML opens a name element but closes service before name is finished. XML elements must close in reverse nesting order and the closing tag name must exactly match the corresponding opening tag. This tool is free to use. No account or payment is required.
Last updated
If <service> contains <name>, the name element must close before service closes. A parser cannot treat </service> as the closing tag for <name>, even if the surrounding text makes the intended structure obvious to a person.
Repeated mismatches often come from string concatenation or templates that emit opening and closing tags in separate branches. Fixing the generator is safer than repeatedly repairing the serialized output by hand.
Close name before closing the parent service element.
<service><name>api</service><service><name>api</name></service>Common questions
Yes. <Item> and <item> are different element names, so their closing tags must preserve the same case.
No. XML elements must be properly nested; one element cannot start inside another and close outside it.
No. XML parsing runs locally in your browser.
Debugging a specific XML issue? Browse XML troubleshooting.