@classmethod
def from_element(cls, api, element):
    """Create a PhotoSet object from XML element from API."""
    title = element.find('title').text
    description = element.find('description').text
    attrs = element.attrib
    return cls(api, attrs['id'], title, description, attrs=attrs)
