'Return the XML info record for the given item'

def xmlinfo(self, id):

    self._update_index()
    for package in self._index.findall(u'packages/package'):
        if (package.get(u'id') == id):
            return package
    for collection in self._index.findall(u'collections/collection'):
        if (collection.get(u'id') == id):
            return collection
    raise ValueError((u'Package    %r    not    found    in    index' % id))
