xml_func.py: Changed SyntaxException to FormatException where the error was with the input data format rather than the mapping syntax
xml_func.py: Changed SyntaxException to FormatException where the error was with the input data format rather than the mapping syntax