How to read an xml file sent via http post
I’ve tried a few solutions
$xml = new SimpleXMLElement($_POST);
This gives and error
Fatal error: Uncaught exception ‘Exception’ with message ‘SimpleXMLElement::__construct() expects parameter 1 to be string, array given’ in C:InetpubSitesACRtest.php:12 Stack trace: #0 C:InetpubSitesACRtest.php(12): SimpleXMLElement->
Fatal error: Call to undefined function simple_xml_loadstring() in
Yet I know the function itself works because I have used it with curl when I have received a string back
$reply = curl_exec($ch);
$xml=simplexml_load_string($reply);
So I assume my problem is my $_POST is a array and not a string. So my question is how to extract my xml from my post variable so I can read it correctly