XML error reference · XV024

Attributes on a closing tag

A closing tag carries attributes, which is never allowed.

What your parser calls it

The same problem, reported differently by each parser. If you arrived here from one of these strings, you are in the right place.

ParserMessage
libxml2 / xmllintexpected '>'

What causes it

An end tag has exactly one form: `</name>`. Attributes belong on the start tag only. This normally results from a copy-paste that duplicated the start tag and then added a slash, or from a templating loop emitting the wrong variable.

See it happen

Triggers the error
<item id="1">Widget</item id="1">
Corrected
<item id="1">Widget</item>

How to fix it

Remove everything between the element name and the `>` in the closing tag.

Fix your own document

Paste your own document below. Press Sample if you want the broken example above loaded instead. Nothing you paste leaves this tab.

XML Validator

Well-formedness and schema validation. Nothing is uploaded.

Input
WaitingPaste a document to check it. Validation runs as you type.

Everything runs in this tab. Nothing you paste is uploaded, logged or sent anywhere. Open your network panel and check.

Tools that catch this

Background reading

Errors this fixes

Every XML error, explained