Matching tag case, one root element, quoted attributes, and legal characters are mandatory
XML does not apply HTML's forgiving repair rules. Start and end tag names must match exactly, elements must nest properly, and attributes cannot repeat on one element. A well-formed document is not necessarily valid against a DTD, XSD, or application schema.