Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有効な XML をブラウザーに出力する PHP スクリプトがあります。Chrome でこれを XML として表示する方法はありますか?
出力が XML 形式であることを示すように、HTTP ヘッダーのコンテンツ タイプを変更してみてください。これを PHP スクリプトの先頭に追加します。
header('Content-type: text/xml');