Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
If a XML document is confirming to XML rules (all tags started are closed, there is a root element etc) then it’s a well formed XML.
If XML is confirming to DTD rules then it’s a valid XML.