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.
| Parser | Message |
|---|---|
| libxml2 / xmllint | Unescaped '<' not allowed in attributes values |
| .NET XmlException | Unexpected 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
<a href="https://example.com>link</a><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 `"` or `'`, 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.
Everything runs in this tab. Nothing you paste is uploaded, logged or sent anywhere. Open your network panel and check.