Refactor: Replace g_error() with g_critical() (RhBug: 1162102)
xml_parser: Add file path into the error message
refactoring: Replace 'fprintf(stderr, ...' with 'g_printerr(...'