adding xml namespace
diff --git a/news/rss.php b/news/rss.php
index 8351e3e..c69a0a9 100644
--- a/news/rss.php
+++ b/news/rss.php
@@ -2,11 +2,11 @@
$news = '<?xml version="1.0" encoding="UTF-8" ?>' . "\n";
$news .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">' . "\n";
- $news .= '<channel>' . "\n";
- $news .= '<title>Eclipse EASE</title>' . "\n";
+ $news .= '<atom:channel>' . "\n";
+ $news .= '<atom:title>Eclipse EASE</atom:title>' . "\n";
$news .= '<atom:link href="https://www.eclipse.org/ease/news/rss.php" rel="self" type="application/rss+xml" />' . "\n";
- $news .= '<description>News feed for the Eclipse EASE framework</description>' . "\n";
- $news .= '<language>en</language>' . "\n";
+ $news .= '<atom:description>News feed for the Eclipse EASE framework</atom:description>' . "\n";
+ $news .= '<atom:language>en</atom:language>' . "\n";
# aggregate news
$dir = glob(getcwd() . '/*.news');
@@ -15,17 +15,17 @@
foreach ($dir as $file) {
$xml = simplexml_load_file($file);
- $news .= '<item>' . "\n";
- $news .= '<title>' . $xml->title[0] . '</title>' . "\n";
- $news .= '<link>https://www.eclipse.org/ease/news/index.php#' . md5(basename($file)) . '</link>' . "\n";
- $news .= '<pubDate>' . date(DATE_RSS, filemtime($file)) . '</pubDate>' . "\n";
- $news .= '<description>' . htmlspecialchars($xml->content[0]) . '</description>' . "\n";
- $news .= '<guid>https://www.eclipse.org/ease/news/index.php#' . md5(basename($file)) . '</guid>' . "\n";
- $news .= '</item>' . "\n";
+ $news .= '<atom:item>' . "\n";
+ $news .= '<atom:title>' . $xml->title[0] . '</atom:title>' . "\n";
+ $news .= '<atom:link>https://www.eclipse.org/ease/news/index.php#' . md5(basename($file)) . '</atom:link>' . "\n";
+ $news .= '<atom:pubDate>' . date(DATE_RSS, filemtime($file)) . '</atom:pubDate>' . "\n";
+ $news .= '<atom:description>' . htmlspecialchars($xml->content[0]) . '</atom:description>' . "\n";
+ $news .= '<atom:guid>https://www.eclipse.org/ease/news/index.php#' . md5(basename($file)) . '</atom:guid>' . "\n";
+ $news .= '</atom:item>' . "\n";
}
- $news .= '</channel>' . "\n";
- $news .= '</rss>' . "\n";
+ $news .= '</atom:channel>' . "\n";
+ $news .= '</atom:rss>' . "\n";
echo $news;
?>