A document is well-formed if it:
- Contains a unique root element
- All tags are nested properly
- Meets the other criteria in the XML Specification
A document is valid if it:
- Is well-formed
- Contains an internal or external DTD
- Meets the contraints of the DTD