def unwrap(response):
    root = ET.fromstring(response.text)

    records = []

    for record_el in root.findall('.//leadRecord'):
        record = lead_record.unwrap(record_el)
        records.append(record)

    return records
def unwrap(response):
    root = ET.fromstring(response.text.encode('utf8'))
    leads = []

    leads_xml_arr = root.findall('.//leadRecord')

    for lead_el in leads_xml_arr:
        lead = lead_record.unwrap(lead_el)
        leads.append(lead)

    return leads
Exemple #3
0
def unwrap(response):
    root = ET.fromstring(response.text)
    lead_record_xml = root.find('.//leadRecord')
    return lead_record.unwrap(lead_record_xml)
Exemple #4
0
def unwrap(response):
    root = ET.fromstring(response)
    lead_record_xml = root.find(".//leadRecord")
    return lead_record.unwrap(lead_record_xml)
def unwrap(response):
    root = ET.fromstring(response.text.encode("utf-8"))
    lead_record_xml = root.find('.//leadRecord')
    return lead_record.unwrap(lead_record_xml)