Export data in XML or CSV format.
App::InformationSet(NAME)
->setExporttype([EXPORTTYPE])
->export([DOWNLAOD]);
NAME: Name of informationSet
EXPORTTYPE: xml or csv
DOWNLAOD: true,false. Return data if we false.
For example:
App::InformationSet('countries')
->setExporttype('xml')
->export(true);
$data = App::InformationSet('countries')
->setExporttype('xml')
->export(false);
echo $data