Quick answer

In well-formed XML, every opening tag must have a matching closing tag.

XML Unclosed Tag

In well-formed XML, every opening tag must have a matching closing tag. If a tag is left unclosed, the parser cannot determine where the element ends.

Common causes

How to fix

Examples

Bad

<root>
  <item>value
</root>

Good

<root>
  <item>value</item>
</root>

FAQ

What does unclosed tag mean in XML?
An opening tag was not closed with a matching </tagname> before the next tag or end of document.
Can XML have self-closing tags?
Yes. Use <tag /> or <tag/> for elements with no content (e.g. <br />, <img />).

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical