Many of these are violations of the grammar, hence making the document
not well-formed (because it doesn't match the production "document").
It is surely intended that no matching the grammar is a fatal error,
though I can't actually see where it says it.
-- Richard