def children_and_attr(trans, elem):
    """Child elements of 'elem', as well as it's attributes, as the
    resulting key/value pairs"""
    res = children_are_mapping(trans, elem)
    res.update(elem.attrib)
    return res
Child elements of 'elem', as well as it's attributes, as the
    resulting key/value pairs
recipes/Python/511472_Simple_maps_and_lists_from_XML/recipe-511472.py