Search code examples
c#asp.net.netrssxmltextwriter

Want to add image to aspx rss page


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?


Solution

  • Try this:

    writer.WriteStartElement("image");
    writer.WriteElementString("url","http://www.fileparade.com/Images/logo88x31.png");