added test for invalid xml
handle sax parser errors in translate pre-processing