XML error reference · XV011

Unterminated attribute value

An attribute value was opened with a quote that is never closed.

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 / xmllintUnescaped '<' not allowed in attributes values
.NET XmlExceptionUnexpected end of file has occurred.

What causes it

The parser read past the end of the tag looking for the matching closing quote. A mismatched pair, opening with a double quote and closing with a single, has the same effect, and so does a value containing an unescaped quote of the same kind.

See it happen

Triggers the error
<a href="https://example.com>link</a>
Corrected
<a href="https://example.com">link</a>

How to fix it

Close the value with the same kind of quote it was opened with. If the value must contain that character, escape it as `&quot;` or `&apos;`, or switch the surrounding quotes to the other kind.

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