XMLParser: issue #74: add support for --save-textfile

- Changed the error type for the API parsing error
idgames_db_dump: added support for --save-textfile