My XML output looks wierd when I request for xml..
Controller:
use FOS\RestBundle\Controller\Annotations as REST;
class RestController {
/**
* @REST\View
*/
public function getAgenciesAction() {
return array("bb"=>array('zz'=>'vv'),'zz');
}
}
Request header:
Aceept: application/xml
Response:
<?xml version="1.0" encoding="UTF-8"?>
<result>
<entry>
<entry><![CDATA[vv]]></entry>
</entry>
<entry><![CDATA[zz]]></entry>
</result>
why is only the end node returned and not all the keys and values?