Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2007, 09:09 PM
Authorized User
 
Join Date: Jul 2003
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.







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





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