XML is well-formed when it follows the basic syntax rules: a single root element, properly nested and closed tags, and quoted attribute values.
Why it matters
Well-formedness is a syntax check only. Validating against a schema is a separate, stricter step.
Source: W3C XML 1.0