<prompt> Design an API that performs an API call and returns the response in XML format.  <response>: The API can be designed using a server-side scripting language like Python, Node.js, or PHP. Heres an example with Python:pythonimport requestsimport xml.etree.ElementTree as ETfrom flask import Flask, jsonify, requestapp Flask__name__app.routegetxmlresponse, methodsGETdef getxmlresponse: api_url request.args.getapi_url response requests.getapi_url xml_response ET.fromstringresponse.content xml_str ET.tostringxml_response, encodingunicode return xml_strif __name__ __main__: app.runport5000, debugTrueThis API is built using Flask, a lightweight framework for building web applications. An endpoint called getxmlresponse is created with a GET method to perform the API call. The URL of the external API is obtained from the request parameters. The Python requests library is used to make an HTTP GET request to the external API.The response obtained is in the form of an XML data. We use the xml.etree.ElementTree module to parse the XML data and convert it to a string. This string is returned in the HTTP response of our API.This API can be consumed by sending a GET request to getxmlresponse with the external API URL as a query parameter. The API will fetch the data from the external API and return it in the XML format. 