Added error codes into xmlTranslator for debugging purposes.