Help / Error dictionary / BEUK-X201
BEUK-X201Contenterror
A chapter isn't well-formed XML
You might see
- EPUBCheck RSC-005Error while parsing file: …
- EPUBCheck RSC-016Fatal Error while parsing file: …
- Beuk's validatorMalformed markup
What happened
One of the XHTML files inside isn't well-formed XML — an unclosed tag, a raw & that should be &, a <br> that isn't <br />. EPUB is strict where HTML is forgiving. EPUBCheck also reports markup that is well-formed but breaks the XHTML rules (an element where it isn't allowed) under RSC-005, and one unclosed tag usually produces several of those lines.
Work through it
- Read the file name and line in the message — that names the chapter.
- If the chapter was hand-edited or pasted from the web, re-import it and let Beuk's sanitizer clean it.
- Export and validate again. Fix the first error first: the lines after it are often echoes of the same tag.
Read: The EPUB error decoder →
Maps to
| EPUBCheck | RSC-005 RSC-016 |
|---|---|
| Studio validator | xml.well-formed |
Sources
- tools-bin/epubcheck.jar MessageBundle.properties RSC_005 RSC_016
- content/help/guides/check-your-book.md Panes (a real EPUBCheck 5.2.1 run: one removed </p> gave three RSC-005 errors and one RSC-016 fatal)
Still stuck? write to [email protected] and mention BEUK-X201.