Merge pull request #7 from tadl/handle_invalid_xml