'Initialize with a dictionary of attributes from our entry in the
config file.'

def __init__(self, attributes):

    xml.sax.handler.ContentHandler.__init__(self)
    self._pathlist = None
    self._current = (-1)
    self._contexts = None
    self._contexts_idx = None
    self._contexts_stm = None
    if (not ValidateAttributes('SITEMAP', attributes, ['path'])):
        return
    path = attributes.get('path')
    if path:
        path = encoder.MaybeNarrowPath(path)
        if os.path.isfile(path):
            output.Log(('Input:    From    SITEMAP    "%s"' % path), 2)
            self._pathlist = [path]
        else:
            output.Error(('Can    not    locate    file    "%s"' % path))
    else:
        output.Error('Sitemap    entries    must    have    a    "path"    attribute.')
