I have a challenge with making a get
request to the server that returns XML:
let responseText = "";
this.http.get('http://example.com', {headers : headers})
.map((res:Response) => res.text()).subscribe(data => responseText = data);
However, the value of the variable responseText
remains an empty string. How can I retrieve plain text to then convert it into XML, or is there a way to directly obtain the XML data?