Catch ParseError when parsing invalid xml strings