phpファイルに xml ヘッダーを設定する。

普通にphpファイルにxmlのヘッダーを書くと?で引っかかるので、下のように記述すればOK!

<?php
header(“Content-type: application/xhtml+xml” );
print “<?xml version=”1.0″ encoding=”Shift_JIS”?>n”;
?>