def xpointerNewContext(self, here, origin):
        """Create a new XPointer context """
        if here is None: here__o = None
        else: here__o = here._o
        if origin is None: origin__o = None
        else: origin__o = origin._o
        ret = libxml2mod.xmlXPtrNewContext(self._o, here__o, origin__o)
        if ret is None:raise treeError('xmlXPtrNewContext() failed')
        __tmp = xpathContext(_obj=ret)
        return __tmp
def xpointerNewContext ( self , here , origin ) : if here is None : here__o = None else : here__o = here . _o if origin is None : origin__o = None else : origin__o = origin . _o ret = libxml2mod . xmlXPtrNewContext ( self . _o , here__o , origin__o ) if ret is None : raise treeError ( 'xmlXPtrNewContext() failed' ) __tmp = xpathContext ( _obj = ret ) return __tmp
Create a new XPointer context