Covered all cases of invalid xml