Save XML to a temp file when there's a parse error