code: def doc(self):
          
          ret = libxml2mod.xmlParserGetDoc(self._o)
          if ret is None:raise parserError('xmlParserGetDoc() failed')
          __tmp = xmlDoc(_obj=ret)
          return __tmp
docs: Get the document tree from a parser context.