private function processXmlResponse($response, $resultObject)
    {
        $payload = array();
        $xml = simplexml_load_string($response);
        $xml->registerXPathNamespace('z', '#RowsetSchema');
        $rows = $xml->xpath("//z:row");
        foreach ($rows as $row) {
            $item = null;
            foreach ($row->attributes() as $k => $v) {
                $normalizedFieldName = str_replace('ows_', '', $k);
                $item[$normalizedFieldName] = (string)$v;
            }
            $payload[] = $item;
        }
        $this->getSerializationContext()->map($payload,$resultObject);
    }
private function processXmlResponse($response, $resultObject)
    {
        $payload = array();
        $xml = simplexml_load_string($response);
        $xml->registerXPathNamespace('z', '#RowsetSchema');
        $rows = $xml->xpath("//z:row");
        foreach ($rows as $row) {
            $item = null;
            foreach ($row->attributes() as $k => $v) {
                $normalizedFieldName = str_replace('ows_', '', $k);
                $item[$normalizedFieldName] = (string)$v;
            }
            $payload[] = $item;
        }
        $this->getSerializationContext()->map($payload,$resultObject);
    }
private function processXmlResponse ( $ response , $ resultObject ) { $ payload = array ( ) ; $ xml = simplexml_load_string ( $ response ) ; $ xml -> registerXPathNamespace ( 'z' , '#RowsetSchema' ) ; $ rows = $ xml -> xpath ( "//z:row" ) ; foreach ( $ rows as $ row ) { $ item = null ; foreach ( $ row -> attributes ( ) as $ k => $ v ) { $ normalizedFieldName = str_replace ( 'ows_' , '' , $ k ) ; $ item [ $ normalizedFieldName ] = ( string ) $ v ; } $ payload [ ] = $ item ; } $ this -> getSerializationContext ( ) -> map ( $ payload , $ resultObject ) ; }
Process Xml response from SharePoint REST service
@param string $response
@param ClientObject $resultObject
Process Xml response from SharePoint REST service