code: def newCharRef(self, name):
          
          ret = libxml2mod.xmlNewCharRef(self._o, name)
          if ret is None:raise treeError('xmlNewCharRef() failed')
          __tmp = xmlNode(_obj=ret)
          return __tmp
docs: Creation of a new character reference node.