TinyXML does not flag an XML document that is malformed because of double hyphens occuring inside comments as erroneous.
Example of such a document:
<!-- <child> -->
One comes across this bug when (mistakenly) trying to nest comments.
The attached patch (against git commit 94b1760fb) fixes this and adds a test for it.