I am sending XML requests with cURL, and server is responding with XML data, which is displayed as single line string, I want to represent data as classical XML structure like this:
<command>
<check>
<domain:check>
<domain:name>domena1.hr</domain:name>
<domain:name>domena2.hr</domain:name>
</domain:check>
</check>
<clTRID>05106558-94309643</clTRID>
</command>
Data is returned as curl_exec, and in string format, only with values.