How to get the response for php POST request in xml format
===

This is the code I posted

  

    $ch = curl_init(url);
    curl_setopt($ch,CURLOPT_POST,true);
    curl_setopt($ch,CURLOPT_USERPWD,"Username:password");
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
    $response = curl_exec ($ch);
    echo"$response";
    curl_close ($ch);

In above code I got the response as a single string without any tags.But I want to get the response in XML format.I tried the following code also.But not displayed any response.

    $rxml = simplexml_load_string($response);
    echo $rxml->title;

What am I doing wrong?