r

*
  • *
  • 28
RSS 2.0 feed <enclosure>
« on: March 11, 2015, 07:37:05 AM »
Hello,


I cannot include image url in rss 2.0 feed. Official RSS 2.0 specs are http://cyber.law.harvard.edu/rss/rss.html#ltenclosuregtSubelementOfLtitemgt

and my sitemap_rss.tpl is below.


<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
   <title>rss</title>
   <link>%SELF_URL%</link>
   <description>Items rss at %INIT_URL%</description>
   <lastBuildDate>%BUILD_DATE%</lastBuildDate>
       <pubDate>%BUILD_DATE%</pubDate>
   <atom:link href="%SELF_URL%" rel="self" type="application/rss+xml" />
%URLS_LIST_FROM%
<item>
   <title><TVAR TITLE></title>
   <link><TVAR URL></link>
   <description><TVAR DESC></description>
   <pubDate><TVAR LASTMOD></pubDate>
   <guid><TVAR URL></guid>
       <source url="http://www.comenzi-sampanie.ro/generator/data/sitemaps/rss.xml">feeds</source>
       <enclosure url="<TVAR iurl>" />
</item>%URLS_LIST_TO%
</channel>
</rss>


The <item> element resulted is

<item>

<title>Comenzi sampanie Sampanie Moet Chandon</title>

<link>
http://www.comenzi-sampanie.ro/ro/1/8/68/sampanie-moet-chandon.php
</link>
<description>Comenzi sampanie Sampanie Moet Chandon</description>
<pubDate>Fri, 06 Mar 2015 12:14:31 +0000</pubDate>

<guid>
http://www.comenzi-sampanie.ro/ro/1/8/68/sampanie-moet-chandon.php
</guid>
<source url="http://www.comenzi-sampanie.ro/generator/data/sitemaps/rss.xml">feeds</source>
<enclosure url=""/>
</item>


RSS is fastest way to submit , and I do not want to waste the opportunity.

is this something wrong I do ?

Anybody has had success ?


Thnx,


r
@r
Re: RSS 2.0 feed <enclosure>
« Reply #1 on: March 11, 2015, 05:08:23 PM »
Hello,

sitemap generator includes only pages in the feed (not images).
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

r

*
  • *
  • 28
Re: RSS 2.0 feed <enclosure>
« Reply #2 on: March 12, 2015, 08:08:38 AM »
Thanky you Oleg,


I find usefull to adjust feed RSS script to allow image inclusion, because Google and Bing see RSS submission as a update to sitemap submission and in my experience, they grab new RSS for sure and add URLs , while my experiments with new URLs submitted via sitemap were less satisfactory.


RSS for them is more for Fresh content, while Sitemap is for overall content.


This somehow guarantees the new URL gets into engine memory.


As I said, very nice to have.


Cheers,


r


PS. If RSS feed is placed into Google Webmaster , at Other Resources /Custom Search Engine / Indexes / URL connected to a HUB page.


In this case, Google will add to index first the URLs from Hub, then will grab the sitemaps below, in Sitemaps URL.
@r