def close(self):
     self.io_flush()
     if self._o != None:
         libxml2mod.xmlOutputBufferClose(self._o)
     self._o = None
 def close(self):
     self.io_flush()
     if self._o != None:
         libxml2mod.xmlOutputBufferClose(self._o)
     self._o = None
    def __del__(self):
#        print "__del__"
        self.io_close()
        if self._o != None:
            libxml2mod.xmlOutputBufferClose(self._o)
        self._o = None
    def __del__(self):
#        print "__del__"
        self.io_close()
        if self._o != None:
            libxml2mod.xmlOutputBufferClose(self._o)
        self._o = None