only treat ExpatError as an XML syntax error (bug 997333)