I am trying to make an API call to an API which returns an XML document as the response. This request works fine in post man and with other languages but I am not sure how to get the XML file in godot. When I make the request it just returns 0 as the response and a bunch of comma separated numbers as the body which is confusing because I didn't get that response on postman. Here is the code I am using to make the request.
func _on_LineEdit_text_entered(new_text):
$HTTPRequest.request("http://export.arxiv.org/api/query?search_query=all:electron&start=0&max_results=1")
func _on_HTTPRequest_request_completed(result, response_code, headers, body):
print(result)
This Code works when making calls to APIs that return json values but im not sure how to get it working with an API that returns an XML