def get_xml_data(latitude=<NUM_LIT>, longitude=<NUM_LIT>):
final_result = {SUCCESS: False, MESSAGE: None,<EOL>CONTENT: None, RAINCONTENT: None}<EOL>log.info("<STR_LIT>",<EOL>latitude, longitude)<EOL>result = __get_ws_data()<EOL>if result[SUCCESS]:<EOL><INDENT>final_result[CONTENT] = result[CONTENT]<EOL>final_result[SUCCESS] = True<EOL><DEDENT>else:<EOL><INDENT>if STATUS_CODE in result and MESSAGE in result:<EOL><INDENT>msg = "<STR_LIT>" % (result[STATUS_CODE],<EOL>result[MESSAGE])<EOL><DEDENT>elif MESSAGE in result:<EOL><INDENT>msg = "<STR_LIT>" % (result[MESSAGE])<EOL><DEDENT>else:<EOL><INDENT>msg = "<STR_LIT>"<EOL><DEDENT>log.warning(msg)<EOL>final_result[MESSAGE] = msg<EOL><DEDENT>result = __get_precipfc_data(latitude,<EOL>longitude)<EOL>if result[SUCCESS]:<EOL><INDENT>final_result[RAINCONTENT] = result[CONTENT]<EOL><DEDENT>else:<EOL><INDENT>if STATUS_CODE in result and MESSAGE in result:<EOL><INDENT>msg = "<STR_LIT>" % (result[STATUS_CODE],<EOL>result[MESSAGE])<EOL><DEDENT>elif MESSAGE in result:<EOL><INDENT>msg = "<STR_LIT>" % (result[MESSAGE])<EOL><DEDENT>else:<EOL><INDENT>msg = "<STR_LIT>"<EOL><DEDENT>log.warning(msg)<EOL>final_result[MESSAGE] = msg<EOL><DEDENT>return final_result<EOL>
Get buienradar xml data and return results.