def reset (self): """DTDParser.reset Note that this overloads the XMLParser.reset() method. Called by the base class constructor, this method adds a private stack for the DTD element parse tree, and a map for the DTD elements. """ XMLParser.reset(self) self.__stack = [] self.elements = {}