def parse_xml(response, path=None, key=None):
     temp = ""
     if not response.status < 400:
         result = GetResult.parse_xml(response)
     if response.status < 400:
         temp = GetResponse.get_data(response, path, key)
         result = GetResult.parse_xml(response)
     if not path:      
         path = os.path.abspath(os.path.dirname(sys.argv[0]))
         temp = os.path.join(path, key[key.rfind("/") + 1:])
     body = "DownloadPath : %s" % str(temp)
     status = result.status      
     reason = result.reason     
     code = result.errorCode      
     message = result.errorMessage  
     requestId = result.requestId
     hostId = result.hostId
     resource = result.resource    
     header = result.header
     return GetResponse(code, message, status, reason, body, requestId, hostId, resource, header)