def generic_values(data, obj):
    ' Get values from the genericTags level of the xml '
    generic_strings_value_map = {'genericString01': 'solicitation_date'}
    for (key, value) in generic_strings_value_map.items():
        try:
            obj[value] = extract_text(data['genericStrings'][key])
        except (KeyError, TypeError):
            obj[value] = None
    return obj
Get values from the genericTags level of the xml
def generic_values(data, obj):
    '  '
    generic_strings_value_map = {'genericString01': 'solicitation_date'}
    for (key, value) in generic_strings_value_map.items():
        try:
            obj[value] = extract_text(data['genericStrings'][key])
        except (KeyError, TypeError):
            obj[value] = None
    return obj