code: def encodeSpecialChars(self, input):
          
          ret = libxml2mod.xmlEncodeSpecialChars(self._o, input)
          return ret
docs: Do a global encoding of a string, replacing the predefined
            entities this routine is reentrant, and result must be
             deallocated.