Parse the raw data and return as data dictionary.

def parse_data(content, raincontent, latitude=52.091579,
               longitude=5.119734, timeframe=60, usexml=False):
    """Parse the raw data and return as data dictionary."""
    if usexml:
        return parse_xml_data(content, raincontent,
                              latitude, longitude, timeframe)
    else:
        return parse_json_data(content, raincontent,
                               latitude, longitude, timeframe)