catch invalid xml