Hello,

I'm trying to implement LLD but it seems that the return XML for a getMerchByAppStatus is not recognized by the PHP SimpleXML library That... or I'm implementing it the wrong way (I almost bet this is the real reason).

Anyway, I hope someone can help me on this.

First of all, I am fetching the result from this address:
HTML Code:
http://lld2.linksynergy.com/services/restLinks/getMerchByAppStatus/XXXXXX/approved
... using ...
Code:
	$CurlHandler = curl_init($LSUrl); 
	curl_setopt($CurlHandler, CURLOPT_HEADER, false); 
	curl_setopt($CurlHandler, CURLOPT_RETURNTRANSFER, true); 
	$CurlResult = curl_exec($CurlHandler); 
	curl_close($CurlHandler);
...And I got this response in CurlResult:
Code:
<ns1:getMerchByAppStatusResponse>
−
<ns1:return>
<ns1:applicationStatus>Approved</ns1:applicationStatus>
<ns1:categories>146 150 16 210 149 20 17 </ns1:categories>
<ns1:mid>560</ns1:mid>
<ns1:name>LinkShare  Referral  Program</ns1:name>
−
<ns1:offer>
<ns1:alsoName>2.3</ns1:alsoName>
<ns1:commissionTerms>flat : 0-null 1.5</ns1:commissionTerms>
<ns1:offerId>7097</ns1:offerId>
<ns1:offerName>current public offer  </ns1:offerName>
</ns1:offer>
</ns1:return>
</ns1:getMerchByAppStatusResponse>
However, when I try to load that string into a variable with SimpleXML in this way:
Code:
$xml = simplexml_load_string($CurlResult);
... everything seems to be OK but when I try to dump the $xml variable (var_dump($xml); ), all I got is:
Code:
SimpleXMLElement::__set_state(array( ))
I'm clueless!!! Anyone can give me a hand on this?

Thanks in advance,
Will