code: def parse_export_request(request_str):
          
  
          # Parse the XML into a tuple tree (may raise CIMXMLParseError or
          # XMLParseError):
  
          tt_ = xml_to_tupletree_sax(request_str, "CIM-XML export request")
          tp = TupleParser()
          tup_tree = tp.parse_cim(tt_)
  
          # Check the tuple tree
  
          if tup_tree[0] != 'CIM':
              raise CIMXMLParseError(
                  _format("Expecting CIM element, got {0}", tup_tree[0]))
          dtd_version = tup_tree[1]['DTDVERSION']
          if not re.match(SUPPORTED_DTD_VERSION_PATTERN, dtd_version):
              raise VersionError(
                  _format("DTD version {0} not supported. Supported versions "
                          "are: {1!A}",
                          dtd_version, SUPPORTED_DTD_VERSION_STR))
          tup_tree = tup_tree[2]
  
          if tup_tree[0] != 'MESSAGE':
              raise CIMXMLParseError(
                  _format("Expecting MESSAGE element, got {0}", tup_tree[0]))
          msgid = tup_tree[1]['ID']
          protocol_version = tup_tree[1]['PROTOCOLVERSION']
          if not re.match(SUPPORTED_PROTOCOL_VERSION_PATTERN, protocol_version):
              raise VersionError(
                  _format("Protocol version {0} not supported. "
                          "Supported versions are: {1!A}",
                          protocol_version, SUPPORTED_PROTOCOL_VERSION_STR))
          tup_tree = tup_tree[2]
  
          if tup_tree[0] != 'SIMPLEEXPREQ':
              raise CIMXMLParseError(
                  _format("Expecting SIMPLEEXPREQ element, got {0}",
                          tup_tree[0]))
          tup_tree = tup_tree[2]
  
          if tup_tree[0] != 'EXPMETHODCALL':
              raise CIMXMLParseError(
                  _format("Expecting EXPMETHODCALL element, got {0}",
                          tup_tree[0]))
  
          methodname = tup_tree[1]['NAME']
          params = {}
          for name, obj in tup_tree[2]:
              params[name] = obj
  
          return (msgid, methodname, params)
docs: Parse a CIM-XML export request message, and return
          a tuple(msgid, methodname, params).