Improper nesting of tags makes no sense to XML.
In HTML some elements can be improperly nested within each other like this:
This text is bold and italic
In XML all elements must be properly nested within each other like this:
This text is bold and italic