Adjust XML parse error types for 2.6 compat