code: def _document_xml(self, doc_id):
          
          doc_str = self._get_doc_by_raw_offset(str(doc_id))
          return compat.ElementTree.XML(doc_str.encode('utf8'))
docs: Return xml Element for the document document_id.