I am using this script that sends information to a server, and it responds with XML. The result is passed to another script using a variable. How do I get raw XML, without filtering it?
function lafuncion($dato1,$dato2)
{
$this->connect("La direccion");
//get the output
$xmlstr=$this->getOutput();
if($xmlstr=='')
{
$this->errors[]='No output.';
return false;
}
//disconnect
$this->disconnect();
//get the output xml as an array using simple xml
$xml = new SimpleXMLElement($xmlstr);
if($xml->result->status==1)
{
$result['status']=$xml->result->status;
$result['statusmsg']=$xml->result->statusmsg;
$result['ip']=$xml->result->options->ip;
return $result;
}
else
{
$this->errors[]=$xml->result->statusmsg;
return false;
}
}