def appendnode(self, node, tree):
         """
         Appends a node - without interpolation - to the XMLFetch's classdict
         returns True if the node has been inserted,and ValueError if it is not.
         (This happens usually if the mapping that holds the nodes itself has been
         altered to be read-only.)

         """

         if node is not StringTypes:
            tmpnode = str(node)
            node = tmpnode
         else :
              pass
         self.__dict__[nodes].append(node)
         return node in self.__dict__[nodes]

         Appends a node - without interpolation - to the XMLFetch's classdict
         returns True if the node has been inserted,and ValueError if it is not.
         (This happens usually if the mapping that holds the nodes itself has been
         altered to be read-only.)

         
recipes/Python/498101_Simpliest_XML_generator/recipe-498101.py