28 chars · 1 line
Waiting for input
28 chars · 1 line
Waiting for input
XML entity syntax
The sample contains & without the required trailing semicolon. XML treats an ampersand as the beginning of an entity or character reference, so the reference must be syntactically complete before normal text continues. This tool is free to use. No account or payment is required.
Last updated
Unlike informal HTML handling in some browsers, well-formed XML does not allow an entity name to run directly into following text without its terminating semicolon.
& is incomplete syntax, while is complete syntax for a name that XML does not predefine. The repair depends on which failure you actually have.
Terminate the amp entity before the following word begins.
<root>Fish & Chips</root><root>Fish & Chips</root>Common questions
Yes. Named and numeric references terminate with a semicolon.
Use & in ordinary XML text or attribute values.
No. The well-formed XML form is &.
Debugging a specific XML issue? Browse XML troubleshooting.