"Well-formed" is XML's baseline: one root element, every tag closed and nested, entities escaped, no stray characters. It's separate from "valid" (matching the DTD). A well-formed-but-invalid doc parses; a non-well-formed one fails entirely. Well-formedness is the non-negotiable floor.