I want to use RSS at my site,how to do in dreamweaver?
This is the code:

<?xml version="1.0" encoding="ISO-8859-1" ?> 
- <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <channel>
  <title>WeakGame Entertainment</title> 
  <link>weakgame.com</link> 
  <lastbuilddate>Sun, 25 Dec 2005 04:15:31 -0500</lastbuilddate> 
  <description>The latest posts on WeakGame.com</description> 
  <language>en-us</language> 
- <item>
  <title>No Santa</title> 
  <link>http://www.weakgame.com/?show=5594</link> 
  <description /> 
  <dc:date>Sun, 25 Dec 2005 00:00:00 -0500</dc:date> 
  </item>
- <item>
  <title>The "L" Word</title> 
  <link>http://www.weakgame.com/?show=5593</link> 
  <description /> 
  <dc:date>Sun, 25 Dec 2005 00:00:00 -0500</dc:date> 
  </item>
- <item>
  <title>Peter Griffin Christmas</title> 
  <link>http://www.weakgame.com/?show=5592</link> 
  <description /> 
  <dc:date>Sun, 25 Dec 2005 00:00:00 -0500</dc:date> 
  </item>
- <item>
  <title>Get Rid of Wifey</title> 
  <link>http://www.weakgame.com/?show=5585</link> 
  <description>A funny McDonalds commercial that shows us how to get rid of the wife</description> 
  <dc:date>Sun, 25 Dec 2005 00:00:00 -0500</dc:date> 
  </item>
- <item>
  <title>Ref Knock-out</title> 
  <link>http://www.weakgame.com/?show=5560</link> 
  <description>Lucky this wasnt a championship match or else the red would be walking away with a belt around his waist.</description> 
  <dc:date>Sat, 24 Dec 2005 00:00:00 -0500</dc:date> 
  </item>
  </channel>
  </rss>

Dani AI

Generated

Quick expert note: ’s XML shows the right idea, but a few small problems commonly cause readers or validators to fail. Element names in RSS are case‑sensitive, so use <lastBuildDate> (not <lastbuilddate>). Channel and item <link> values must be full absolute URLs (include http:// or https://). For item dates prefer RSS <pubDate> (RFC‑822), or if using Dublin Core’s <dc:date> supply ISO‑8601 timestamps — don’t mix formats. Add a stable <guid> for each item so aggregators can track uniqueness.

Quick checklist (fixes that usually solve "it looks broken" problems)

  • Serve the feed with an XML content type (for example application/rss+xml; charset=UTF-8).
  • No bytes or whitespace before the <?xml ... ?> prolog (remove BOMs).
  • Escape HTML in <description> or wrap it in <![CDATA[ ... ]]>.
  • Use UTF‑8 where possible (simpler and more interoperable).
  • Include lastBuildDate, optional ttl, and a per‑item <guid>.
  • Validate the feed after changes to catch small XML or namespace errors.

Minimal, practical examples (these are short patterns, not full feeds):

PHP: simple consumer using SimpleXML

<?php
$feed = @simplexml_load_file('http://example.com/feed.xml');
if (!$feed) exit('feed error');
foreach ($feed->channel->item as $item) {
  $title = htmlspecialchars((string)$item->title, ENT_QUOTES, 'UTF-8');
  $link  = (string)$item->link;
  $date  = date('M j, Y', strtotime((string)$item->pubDate));
  echo "<li><a href=\"$link\">$title</a> <small>$date</small></li>\n";
}
?>

Header to emit a generated feed

<?php
header('Content-Type: application/rss+xml; charset=UTF-8');
echo '<?xml version="1.0" encoding="UTF-8"?>';
/* build the <rss> document here with properly escaped content */
?>

Context note: ’s suggestion to parse server‑side is correct — Dreamweaver is an editor/IDE, not a runtime. It can build and upload the XML or PHP files, but actual consumption typically requires server‑side code (or a client fetch plus a server proxy to avoid CORS). After fixes, validate the feed and test it in a few readers to confirm compatibility.

Recommended Answers

All 2 Replies

That looks like valid RSS, so however you created it, you did it correctly. If on the other hand, you are asking how to consume that RSS feed to display content on your site, you'll need to write some code in whatever server-side language you use to parse the XML into whatever you like (HTML, presumably). So you should ask your question in either the ASP, PHP, or ASP.NET Forum.

I don't use Dreamweaver, but doubt it has any way of authoring an RSS consumer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.