header("Content-type: text/xml; charset=utf-8");
# example structure
# display
echo $xml;
# build file
$file = fopen( "content.xml","w+");
fputs($file,$xml);
fclose($file);
# redirect file
header("Location: content.xml");
Library Program PHP,JavaScript,Html,Css,SEO