Simple XML parsing

Xml File“ originTransactionID102511650088881951responseCode100  ” PHP :“ $xml = new SimpleXMLElement($xml); $items = $xml->xpath(‘/methodResponse/fault/value/struct/member/name’);                $firstArr=$this->objectsIntoArray($items[0]);//convert XML Object to Php Array function objectsIntoArray($arrObjData, $arrSkipIndices = array()) { $arrData = array(); // if input is object, convert into array if (is_object($arrObjData)) { $arrObjData = get_object_vars($arrObjData); }… read more →