Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No image in RSS feed

Status
Not open for further replies.

ralphonzo

Programmer
Apr 9, 2003
228
GB
Can anyone decypher the reason why my images aren't showing from my Wordpress RS feed?

XML feed:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?>
<?xml-stylesheet type="text/css" media="screen" href="[URL unfurl="true"]http://feeds.feedburner.com/~d/styles/itemcontent.css"?>[/URL]
<rss xmlns:content="[URL unfurl="true"]http://purl.org/rss/1.0/modules/content/"[/URL] xmlns:wfw="[URL unfurl="true"]http://wellformedweb.org/CommentAPI/"[/URL] xmlns:dc="[URL unfurl="true"]http://purl.org/dc/elements/1.1/"[/URL] xmlns:atom="[URL unfurl="true"]http://www.w3.org/2005/Atom"[/URL] xmlns:sy="[URL unfurl="true"]http://purl.org/rss/1.0/modules/syndication/"[/URL] xmlns:slash="[URL unfurl="true"]http://purl.org/rss/1.0/modules/slash/"[/URL] xmlns:georss="[URL unfurl="true"]http://www.georss.org/georss"[/URL] xmlns:geo="[URL unfurl="true"]http://www.w3.org/2003/01/geo/wgs84_pos#"[/URL] xmlns:media="[URL unfurl="true"]http://search.yahoo.com/mrss/"[/URL] xmlns:feedburner="[URL unfurl="true"]http://rssnamespace.org/feedburner/ext/1.0"[/URL] version="2.0">
<channel>
<title>homebakekitchen</title>
<link>[URL unfurl="true"]http://homebakekitchen.wordpress.com</link>[/URL]
<description>Just another WordPress.com site</description>
<lastBuildDate>Tue, 16 Aug 2011 14:10:03 +0000</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>[URL unfurl="true"]http://wordpress.com/</generator>[/URL]
<cloud domain="homebakekitchen.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
<url>[URL unfurl="true"]http://s2.wp.com/i/buttonw-com.png</url>[/URL]
<title>homebakekitchen</title>
<link>[URL unfurl="true"]http://homebakekitchen.wordpress.com</link>[/URL]
</image>
<atom:link rel="search" type="application/opensearchdescription+xml" href="[URL unfurl="true"]http://homebakekitchen.wordpress.com/osd.xml"[/URL] title="homebakekitchen" />
<atom10:link xmlns:atom10="[URL unfurl="true"]http://www.w3.org/2005/Atom"[/URL] rel="self" type="application/rss+xml" href="[URL unfurl="true"]http://feeds.feedburner.com/homebakekitchen"[/URL] />
<feedburner:info uri="homebakekitchen" />
<atom10:link xmlns:atom10="[URL unfurl="true"]http://www.w3.org/2005/Atom"[/URL] rel="hub" href="[URL unfurl="true"]http://pubsubhubbub.appspot.com/"[/URL] />
<atom10:link xmlns:atom10="[URL unfurl="true"]http://www.w3.org/2005/Atom"[/URL] rel="hub" href="[URL unfurl="true"]http://homebakekitchen.wordpress.com/?pushpress=hub"[/URL] />
<item>
<title>Hello world!</title>
<link>[URL unfurl="true"]http://feedproxy.google.com/~r/homebakekitchen/~3/0fJok5DnOjM/</link>[/URL]
<comments>[URL unfurl="true"]http://homebakekitchen.wordpress.com/2011/08/09/hello-world/#comments</comments>[/URL]
<pubDate>Tue, 09 Aug 2011 19:05:30 +0000</pubDate>
<dc:creator>homebakekitchen</dc:creator>
<category><![CDATA[Uncategorized]]></category>
<guid isPermaLink="false">[URL unfurl="true"]http://homebakekitchen.wordpress.com/?p=1</guid>[/URL]
<description><![CDATA[Welcome to WordPress.com Snusan O. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post. Here are &#8230; <a href="[URL unfurl="true"]http://homebakekitchen.wordpress.com/2011/08/09/hello-world/">Continue[/URL] reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="[URL unfurl="true"]http://stats.wordpress.com/b.gif?host=homebakekitchen.wordpress.com&amp;blog=26024530&amp;post=1&amp;subd=homebakekitchen&amp;ref=&amp;feed=1"[/URL] width="1" height="1" />]]></description>
<content:encoded><![CDATA[<p>Welcome to <a href="[URL unfurl="true"]http://wordpress.com/">WordPress.com</a>[/URL] Snusan O. After you read this, you should delete and write your own post, with a new title above. Or hit <a title="Direct link to the Add New in the Admin Dashboard" href="/wp-admin/post-new.php">Add New</a> on the left (of the <a title="Direct link to this blog's admin dashboard" href="/wp-admin">admin dashboard</a>) to start a fresh post.</p>
<p><a href="[URL unfurl="true"]http://homebakekitchen.files.wordpress.com/2011/08/photo-0111.jpg"><img[/URL] class="alignnone size-medium wp-image-12" title="Photo-0111" src="[URL unfurl="true"]http://homebakekitchen.files.wordpress.com/2011/08/photo-0111.jpg?w=300&#038;h=225"[/URL] alt="Iron" width="300" height="225" /></a></p>
<p><a title="Learn WordPress.com—From zero to hero." href="[URL unfurl="true"]http://learn.wordpress.com/">Here</a>[/URL] are some suggestions for your first post.</p>
<ol>
<li>You can find new ideas for what to blog about by reading <a title="The Daily Post at WordPress.com—post something every day" href="[URL unfurl="true"]http://dailypost.wordpress.com/">the[/URL] Daily Post</a>.</li>
<li>Add <a title="Click the &quot;Press This&quot; link on this page to activate the Press this bookmark feature." href="/wp-admin/tools.php">PressThis</a> to your browser. It creates a new blog post for you about any interesting  page you read on the web.</li>
<li><a title="Edit the first post on this blog." href="/wp-admin/post.php?post=1&amp;action=edit">Make some changes to this page</a>, and then hit preview on the right. You can always preview any post or edit it before you share it to the world.</li>
</ol>
<br /> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/gocomments/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/comments/homebakekitchen.wordpress.com/1/"[/URL] /></a> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/godelicious/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/delicious/homebakekitchen.wordpress.com/1/"[/URL] /></a> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/gofacebook/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/facebook/homebakekitchen.wordpress.com/1/"[/URL] /></a> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/gotwitter/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/twitter/homebakekitchen.wordpress.com/1/"[/URL] /></a> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/gostumble/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/stumble/homebakekitchen.wordpress.com/1/"[/URL] /></a> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/godigg/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/digg/homebakekitchen.wordpress.com/1/"[/URL] /></a> <a rel="nofollow" href="[URL unfurl="true"]http://feeds.wordpress.com/1.0/goreddit/homebakekitchen.wordpress.com/1/"><img[/URL] alt="" border="0" src="[URL unfurl="true"]http://feeds.wordpress.com/1.0/reddit/homebakekitchen.wordpress.com/1/"[/URL] /></a> <img alt="" border="0" src="[URL unfurl="true"]http://stats.wordpress.com/b.gif?host=homebakekitchen.wordpress.com&amp;blog=26024530&amp;post=1&amp;subd=homebakekitchen&amp;ref=&amp;feed=1"[/URL] width="1" height="1" /><div class="sharedaddy"></div><img src="[URL unfurl="true"]http://feeds.feedburner.com/~r/homebakekitchen/~4/0fJok5DnOjM"[/URL] height="1" width="1"/>]]></content:encoded>
<wfw:commentRss>[URL unfurl="true"]http://homebakekitchen.wordpress.com/2011/08/09/hello-world/feed/</wfw:commentRss>[/URL]
<slash:comments>1</slash:comments>
<media:content url="[URL unfurl="true"]http://0.gravatar.com/avatar/4e3e22e3dcdc5a8ff6b8c46c922a98f0?s=96&amp;d=identicon&amp;r=G"[/URL] medium="image">
<media:title type="html">homebakekitchen</media:title>
</media:content>
<media:content url="[URL unfurl="true"]http://homebakekitchen.files.wordpress.com/2011/08/photo-0111.jpg?w=300"[/URL] medium="image">
<media:title type="html">Photo-0111</media:title>
</media:content>
<feedburner:origLink>[URL unfurl="true"]http://homebakekitchen.wordpress.com/2011/08/09/hello-world/</feedburner:origLink>[/URL]
</item>
</channel>
</rss>

And the ASP/VBScript code that renders images in every other feed that I've ever used:
Code:
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="10"><%
	dim xmlDom, nodeCol, oNode, oChildNode
	'set xmlDom = Server.CreateObject("Microsoft.XMLDOM")
	set xmlDom = Server.CreateObject("Msxml2.FreeThreadedDomDocument.4.0")  
	
	call xmlDom.setProperty("ServerHTTPRequest", true)
	xmlDom.async = false
	'call xmlDom.load("[URL unfurl="true"]http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/technology/rss.xml")[/URL]
	'call xmlDom.load("[URL unfurl="true"]http://feeds.feedburner.com/Techcrunch")[/URL]
	call xmlDom.load("[URL unfurl="true"]http://feeds.feedburner.com/homebakekitchen")[/URL]
	
	if not xmlDom.documentElement is nothing then
	  set nodeCol = xmlDom.documentElement.selectNodes("channel/item")
	  for each oNode in nodeCol
		title = ""
		set oChildNode = oNode.selectSingleNode("title")
		if not oChildNode is nothing then
		  title = oChildNode.text
		end if
		
		bret = false
		set oChildNode = oNode.selectSingleNode("description")
		if not oChildNode is nothing then
		    sxml=oChildNode.text
			sxml=replace(sxml,"&","&amp;") 
			bret = xmlDom.loadxml("<x>" & sxml & "</x>")
		end if
		
		if bret then
			set cnodes=xmlDom.SelectNodes("//img/@src")
				if j = 0 then
					response.write "<tr><td width='100%'><h3>" & title & "</h3>"
					response.write "<img src='" & cnodes(j).NodeValue & "' alt='image (0," & j & ")' class='floatLeft' width='200' />"
					response.write "<p>" & xmlDom.documentElement.text & "</p>"
				end if
			set cnodes=nothing
		end if
		''''''''''''''''''''''''''''''''
		set oChildNode = oNode.selectSingleNode("link")
		if not oChildNode is nothing then
			if bret then
			  Response.Write("<tr><td width='100%'><div align='justify'>" & vbCrLf)
			  Response.Write("  <a href=""" & oChildNode.text & """ target=""_blank"">")
			  Response.Write("    more..." & vbCrLf)
			  Response.Write("  </a><div align='center'><br><br><a href='javascript:window.close();'>Close Window</a></div><br><br></div></td></tr>" & vbCrLf)
			end if
		end if
	  next
	else
	  Response.Write("<p>" & vbCrLf)
	  Response.Write("  Sorry, no news today!" & vbCrLf)
	  Response.Write("</p><div align='center'><br><br><a href='javascript:window.close();'>Close Window</a></div></td></tr>" & vbCrLf)
	end if %>
</table>

Hope some one can spot it :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top