I have received this XML out from a curl request.
<?xml version="1.0" encoding="utf-8"?>
<transaction>
<result>PENDING</result>
<merchanttransid>343434343</merchanttransid>
<transref>23232323</transref>
<errorcode>000</errorcode>
<errormessage/>
<description/>
</transaction>
SMTP Error: Could not connect to SMTP host.
However, the server is replying with a additional error response of SMTP Error: Could not connect to SMTP host. Now, when parsing via simplexml_load_string().
It throw's an error:
Entity: line 10: parser error: Extra content at the end of the document (Error Number: 2)
Since, the XML is correct and just having an issue on the response, is there a way on how strip that extra line?