curl into xml instead of webpage

lve

New Member
ok so i am using the following code to set and retrieve the curl url\[code\]$ch = curl_init();curl_setopt($ch, CURLOPT_URL,$url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_TIMEOUT, 15);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);$xml_response = curl_exec($ch);curl_close($ch);echo $xml_response; \[/code\]my problem is that the api that i am calling has the data in xml format so curl is returning the data in one big string like this 509f0e1f-b8d4-4cb8-b4f0-109751dca4eb0.0114370000000000TrueASIN0273702440SmallAll0273702440http://www.amazon.com/Accounting-Finance-Non-Specialists-Peter-....(ect)how to have curl display the data in xml format?
 
Back
Top