SVG
What goes wrong in SVG
The 3 errors this corpus records against SVG documents, keyed by the message your parser printed. Nothing here is written for this page — each error declares the formats it bites, and this is that declaration read the other way round.
Start with the message you were given
Every entry below states the message our validator emits, verbatim, and a test asserts it still does. If you are holding a broken document rather than a question, XML validator will tell you which of these you have.Parse errors · 3
These stop the document being read at all. Nothing downstream sees a file with one of them, because it is not XML.
- Unquoted attribute value (AttValue expected)
AttValue: " or ' expected (line 1)An attribute value is not quoted. XML requires quotes around every value, including numbers — unlike HTML, which accepts bare values happily. - Attribute redefined
Attribute href redefined (line 1)The same attribute name appears twice on one element, which XML forbids outright. HTML silently keeps the first; XML refuses the document. - Attributes construct error (unterminated quote)
attributes construct error (line 1)An attribute value was opened with a quote that is never closed, so the parser runs past the end of the tag looking for the matching one.
Back to SVG — root element, namespaces, constraints and a worked example.
Get started
Bring order to the XML your team can't afford to ignore.
Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.