Wellformedness refers to the syntactical correctness of the document.
Validity refers to the grammatical correctness of the document.
A document that is not wellformed can never be valid.
A document that is wellformed can be invalid.