'Return a parsed representation of the file specified by name. For
HTML and XML files an lxml tree is returned. For CSS files a cssutils
stylesheet is returned. Note that parsed objects are cached for
performance. If you make any changes to the parsed object, you must
call :meth:`dirty` so that the container knows to update the cache. See also :meth:`replace`.'

def parsed(self, name):

    ans = self.parsed_cache.get(name, None)
    if (ans is None):
        self.used_encoding = None
        mime = self.mime_map.get(name, guess_type(name))
        ans = self.parse(self.name_path_map[name], mime)
        self.parsed_cache[name] = ans
        self.encoding_map[name] = self.used_encoding
    return ans
