我正面臨使用PHP從Wired讀取RSS源的奇怪問題。我想要在我的網站上顯示Feed。我正在使用下面的代碼來獲取提要。任何人都可以讓我知道我到底在做錯什麼。 try {
$rss = new DOMDocument();
$rss->load('https://www.wired.com/category/reviews/feed/');
if ($rss->vali
我試圖構建一個新聞饋送應用程序,並且遇到格式化結果的麻煩,我確信這個問題只是缺乏經驗。第一個是item.summary.text拉過一連串的鏈接通過摘要 我遇到的另一個問題是大膽所有的標題和改變它們的顏色我也使用豐富的文本框這可能不是代表數據的最佳方式。 using System;
using System.Collections.Generic;
using System.Component
使用這個RSS種子http://rss.nytimes.com/services/xml/rss/nyt/Sports.xml 我如何得到<media:credit>Pete Kiehart for The New York Times</media:credit>只輸出「Pete Kiehart」? 所以我得到了這個。這是一個獲取圖像和文本的RSS XML設備。所以這樣的: 成爲該 代碼做的是這