function export($data_type = false, $dataSets = false) { //get xml into array if ($dataSets) { include_once 'xml.class.php'; $xml = new EF_XML_Helper(); header('Content-Type: application/octet-stream'); echo $xml->toXML($dataSets, $data_type); exit; } else { return false; } }