Well-formed
When an XML document obeys the syntax of the XML standard including having a single root element and all elements must be properly closed and nested
Valid
An xml document is valid if it is well formed and conforms to a document type definition or XML schema definition
A document can be well formed without being valid if contains tags or nesting structures that are not allowed in its DTD/XSD