added comments explaining the malformed xml situation