All XML documents must be well-formed
Well-formedness rules:
Open and close all tags
Empty tags end with />
There is a unique root element
Elements may not overlap
Attribute values are quoted
<
and &
are only used to start tags and entities
Plus more...
Parsers are required to reject malformed documents.
This improves compatibility and interoperability.