code: def relaxNGNewDocParserCtxt(self):
          
          ret = libxml2mod.xmlRelaxNGNewDocParserCtxt(self._o)
          if ret is None:raise parserError('xmlRelaxNGNewDocParserCtxt() failed')
          __tmp = relaxNgParserCtxt(_obj=ret)
          return __tmp
docs: Create an XML RelaxNGs parser context for that document.
            Note: since the process of compiling a RelaxNG schemas
            modifies the document, the @doc parameter is duplicated
             internally.