code: def xpointerNewRange(self, startindex, end, endindex):
          
          if end is None: end__o = None
          else: end__o = end._o
          ret = libxml2mod.xmlXPtrNewRange(self._o, startindex, end__o, endindex)
          if ret is None:raise treeError('xmlXPtrNewRange() failed')
          return xpathObjectRet(ret)
docs: Create a new xmlXPathObjectPtr of type range