我正在嘗試將 XML 中的內容轉換為 HTML,以顯示在瀏覽器上,我找到了在線轉換器,這里是鏈接https://codebeautify.org/xml-to-html-converter它的作用是,基本上它獲取XML數據并給出html輸出,如下圖所示但我想在 PHP 中執行此操作,我在 google 中搜索過此內容,但沒有找到相關的解決方案。下面是我嘗試過的<?php$file = 'https://demo.conitor.in/Remembered/views/feed.php';if(!$xml = simplexml_load_file($file)){ echo "file not found!";} else { echo "<pre>"; print_r($xml); echo "</pre>"; }?>這是我的 xml 數據 URL:- https://demo.conitor.in/Remembered/views/feed.php
- 0 回答
- 0 關注
- 265 瀏覽
添加回答
舉報
0/150
提交
取消