def item(data, feed=None, service=None):
    """
    Format an opml section for a feed subscription using data found in its 
    Opml feed entry.

    @param data: Opml data
    @type data: dict
    @param feed: Unused for this format. Default dict.
    @type feed: dict
    @param service: Unused for this format. Default None.
    @type service: obj
    @return:
    @rtype: basestring
    @raise TypeError: data passed was not a dict
    """
    if not isinstance(data, dict):
        raise TypeError('requires type dict.')
    opmlitem = []
    opmlitem.append(
        '<outline title="%(title)s" text="%(text)s" type="%(type)s" xmlUrl="%(xmlUrl)s" htmlUrl="%(htmlUrl)s"'
         % {'htmlUrl': data.get('htmlUrl', ''), 'title': data.get('title',
        ''), 'type': data.get('type', ''), 'xmlUrl': data.get('xmlUrl', ''),
        'description': data.get('description', ''), 'text': data.get('text',
        data['title'])})
    if data.has_key('imgUrl'):
        opmlitem.append(' imgurl="%s"' % data['imgUrl'])
    if data.has_key('altUrl'):
        opmlitem.append(' alturl="%s"' % data['altUrl'])
    if data.has_key('subId'):
        opmlitem.append(' subId="%s"' % data['subId'])
    if data.has_key('status'):
        opmlitem.append(' status="%s"' % data['status'])
    opmlitem.append('/>\n')
    return ''.join(opmlitem)
