$msg = array();$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];$msg = (array)simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);