code: def NewDoc(self, cur, URL, encoding, options):
          
          ret = libxml2mod.xmlReaderNewDoc(self._o, cur, URL, encoding, options)
          return ret
docs: Setup an xmltextReader to parse an XML in-memory document.
            The parsing flags @options are a combination of
            xmlParserOption. This reuses the existing @reader
             xmlTextReader.