xml_func.py: Use on_error exception handler to allow caller to print exceptions instead of raising them
xml_func.py: Use on_error exception handler to allow caller to print exceptions instead of raising them