'get properties from element tree element'

@staticmethod
def get_entry_properties_from_element(element, include_id, id_prefix_to_skip=None, use_title_as_id=False):

    properties = {}
    etag = element.attrib.get(_make_etree_ns_attr_name(_etree_entity_feed_namespaces['m'], 'etag'), None)
    if (etag is not None):
        properties['etag'] = etag
    updated = element.findtext('./atom:updated', '', _etree_entity_feed_namespaces)
    if updated:
        properties['updated'] = updated
    author_name = element.findtext('./atom:author/atom:name', '', _etree_entity_feed_namespaces)
    if author_name:
        properties['author'] = author_name
    if include_id:
        if use_title_as_id:
            title = element.findtext('./atom:title', '', _etree_entity_feed_namespaces)
            if title:
                properties['name'] = title
        else:
            id = element.findtext('./atom:id', '', _etree_entity_feed_namespaces)
            if id:
                properties['name'] = _get_readable_id(id, id_prefix_to_skip)
    return properties
