19 chars · 1 line
Waiting for input
19 chars · 1 line
Waiting for input
XML entity troubleshooting
The preloaded XML uses , which is familiar from HTML but is not one of XML's five predefined named entities. XML parsers reject the reference unless the entity is explicitly declared, so portable XML usually uses a numeric character reference instead. This tool is free to use. No account or payment is required.
Last updated
XML predefines only amp, lt, gt, apos, and quot. Names commonly accepted by HTML, including nbsp, copy, or mdash, are not automatically available in standalone XML documents.
A numeric reference such as   does not depend on a custom DTD entity declaration, which makes the XML easier to exchange across generic parsers and services.
Replace the HTML-only nbsp entity with a numeric non-breaking-space reference.
<root> </root><root> </root>Common questions
Not by default. XML does not predefine nbsp; use a numeric reference or declare the entity explicitly.
XML predefines amp, lt, gt, apos, and quot.
Yes, but consumers must process the relevant declaration. Numeric references are often simpler for portable data XML.
Debugging a specific XML issue? Browse XML troubleshooting.