Parses the XML text using the ET.XML function, but handling the ParseError in
    a user-friendly way.

def XML(content, source=None):
    """Parses the XML text using the ET.XML function, but handling the ParseError in
    a user-friendly way.
    """
    try:
        tree = ET.XML(content)
    except ET.ParseError as err:
        x_parse_error(err, content, source)
    return tree