Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 9th, 2007, 09:09 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying Image in RSS Feed with Vb.Net

Hello Everyone and thanks for your help in advance. I am writing my first RSS feed and am encountering problems with creating an image link. I think I have the xml formatted correctly, yet, when I open the page in IE 7.0, no image or reference appears. Here is the xml I have generated:

  <?xml version="1.0" encoding="utf-8" ?>

- <rss version="2.0">
- <channel>
  <title>DianaMcLaughlin.com - Official Website of Diana McLaughlin, M.D., M.B.A.</title>
  <link>http://www.dianamclaughlin.com/</link>
  <description>Official Website of Diana McLaughlin, M.D., M.B.A.</description>
  <copyright>Copyright 2007. All rights reserved.</copyright>
- <item>
  <title>Tenderly Loving Children</title>
  <link>http://www.dianamclaughlin.com/Default.aspx?ArticleID=5</link>
  <pubDate>Thu, 05 Jul 2007 16:32:33 EST</pubDate>
- <image>
  <url>http://www.dianamclaughlin.com/images/diana_staff_HighRes.jpg</url>
  <title>Photo of Diana McLaughlin, M.D., M.B.A.</title>
  <link>http://www.dianamclaughlin.com/Default.aspx?ArticleID=5</link>
  </image>
  <ttl>15</ttl>
  </item>
  </channel>
  </rss>
The actual page can be located at http://www.dianamclaughlin.com/rss.aspx

The code I am using to generate this is:

xtw.WriteStartElement("image")

            xtw.WriteStartElement("url")
            xtw.WriteString("http://www.dianamclaughlin.com/images/diana_staff_HighRes.jpg")
            xtw.WriteEndElement()


            'xtw.WriteString(Chr(60) & "img src=http://www.dianamclaughlin.com/images/diana_staff_HighRes.jpg /" & Chr(62))


            xtw.WriteStartElement("title")
            xtw.WriteString("Photo of Diana McLaughlin, M.D., M.B.A.")
            xtw.WriteEndElement()

            xtw.WriteStartElement("link")
            'xtw.WriteString(ArticleURL)
            xtw.WriteString("http://www.dianamclaughlin.com/images/diana_staff_HighRes.jpg")
            xtw.WriteEndElement()

            xtw.WriteEndElement()

Any help on this topic would be greatly appreciated. Thanks.


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
validate rss feed arafat.eajaz RSS and Atom 2 September 6th, 2012 08:56 AM
Implementing RSS FEED in Asp.Net suresh_net RSS and Atom 0 August 8th, 2008 10:15 AM
2 Questions on XSLT for RSS Feed Tachyon XSLT 4 June 14th, 2007 06:00 PM
Rss Feed in php surendran RSS and Atom 2 October 22nd, 2005 12:59 AM
RSS Feed Shibu Classic ASP XML 0 January 21st, 2005 08:47 AM



All times are GMT -4. The time now is 08:02 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.