code: def docEntity(self, name):
          
          ret = libxml2mod.xmlGetDocEntity(self._o, name)
          if ret is None:raise treeError('xmlGetDocEntity() failed')
          __tmp = xmlEntity(_obj=ret)
          return __tmp
docs: Do an entity lookup in the document entity hash table and