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
示例#2
0
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
示例#3
0
def unwrap(response):
    root = ET.fromstring(response.text)
    lead_record_xml = root.find('.//leadRecord')
    return lead_record.unwrap(lead_record_xml)
示例#4
0
def unwrap(response):
    root = ET.fromstring(response)
    lead_record_xml = root.find(".//leadRecord")
    return lead_record.unwrap(lead_record_xml)
示例#5
0
def unwrap(response):
    root = ET.fromstring(response.text.encode("utf-8"))
    lead_record_xml = root.find('.//leadRecord')
    return lead_record.unwrap(lead_record_xml)