0

I have a cod where my aspx.cs file writes to an aspx the xml tags.

Now I have a requirement where I need to add logo at the end of the 'title' tag.

this is my code,

  writer.WriteStartDocument();
  writer.WriteStartElement("rss");
  writer.WriteAttributeString("version", "2.0");
  writer.WriteStartElement("channel");
  writer.WriteElementString("title", "FRA News");
  writer.WriteElementString("link", fraNews);
  writer.WriteElementString("description", "FRALatest actions");

When this is displayed as an rss feed I want the logo at the right corner of the 'Title' field. How can I accomplish this?

Martin54
  • 1,349
  • 2
  • 13
  • 34
Geek
  • 3,187
  • 15
  • 70
  • 115

1 Answers1

1

Try this:

writer.WriteStartElement("image");
writer.WriteElementString("url","http://www.fileparade.com/Images/logo88x31.png");
coder
  • 13,002
  • 31
  • 112
  • 214
  • @ coder thanks, but after adding these 2 lines,my main tags, item.title/link/desciption is not seen...just when i uncomment i can see them. any guesses? – Geek May 02 '12 at 20:15
  • I think due to the start element try to remove it and check if it worked. – coder May 02 '12 at 20:15
  • the image one.If it still continues have a look at this article http://www.codeproject.com/Articles/53067/Create-an-RSS-Feed-in-ASP-NET – coder May 02 '12 at 20:23