def get_user_data(user, url):
    """
    Returns dictionary with user's id, name, and full path to avatar.
    """
    return {
        'id': int(user.attrib['id']),
        'data': {
            'name': user.find('name').text,
            'avatar': '{}{}'.format(url, user.find('avatar').text)
        }
    }