
Mismatched Tag Errors in Large XML Files and Finding Them
Locate an Opening and ending tag mismatch in a 28.6 MB XML file four ways: the parser, per-tag counts, record-by-record parsing and bisection, with timings.
Older than half the tools that still emit it. Namespaces, XPath and getting rows out of feeds and exports.

Locate an Opening and ending tag mismatch in a 28.6 MB XML file four ways: the parser, per-tag counts, record-by-record parsing and bisection, with timings.

What Content is not allowed in prolog means in Java: a BOM decoded to text, a double BOM, JSON or text instead of XML, and how to diagnose it.

Fix undefined entity and Entity not defined errors in XML from HTML entities like nbsp and eacute: convert to numeric references, a DOCTYPE, or lxml recover.

Fix PCDATA invalid Char value and reference to invalid character number: which characters XML 1.0 forbids, how to strip them from 28 MB in 0.03 s and verify.

Why XML fails with Premature end of data in tag: truncated downloads, cut gzip streams and empty responses, how each message differs, and what to check.

Read the not well-formed error in ElementTree, lxml and xmllint on a 28.6 MB file: line and column, what the position means and a method to find the cause.

A tested routine for XML that will not parse: check the bytes, then the encoding, then the characters, then the structure, with an error message dictionary.
We send one email when a new article is published. No spam.