13 chars · 1 line
Waiting for input
13 chars · 1 line
Waiting for input
XML attribute syntax
The preloaded start tag places id directly beside "7" without =. XML attribute syntax requires name="value" or name='value', so the parser cannot determine where the attribute assignment begins. This tool is free to use. No account or payment is required.
Last updated
Unlike some template syntaxes, XML requires an explicit equals sign for every attribute. Boolean-style presence attributes are not part of ordinary XML syntax either; they still need a quoted value.
Insert = between id and its quoted value.
<root id"7"/><root id="7"/>Common questions
Use name="value" or name='value'. The equals sign and quotes are required.
No. XML attributes still require a value, such as enabled="true".
Yes. Whitespace around = is allowed, although compact name="value" syntax is common.
Debugging a specific XML issue? Browse XML troubleshooting.