Fiz uma rotina em PHP puro e funcionou. No scriptcase não.
olha a rotina em php puro :
$data = $row[‘content’];
$xarq = $row[‘id’];
file_put_contents($xarq, $data);
$xheader = “Content-disposition: attachment; filename=”.$xarq;
header("$xheader");
header(“Content-type: text/xml”);
readfile($xarq);
ONDE : content = conteudo do arq XML
id = nome do arquivo.xml
Coloquei isso num metodo php e não funcionou. Vou colocar um botão em um formulario para fazer o download do XML.
DETALHE : SCRIPTCASE V5
No 6 ele faz automatico o download