I'm not sure if what I'm trying to do is possible in this realm. However, here's what I'm tyring to do. I'm using XmlWriter.WriteElementString Method to write out my RSS feed from the database. What I like to do is at some point of the data, I like to put
some html syntax such as <br /> and hr tag to format the output of the RSS feed a bit better. Any suggestion is much appreciated.
Okay, I've found this tutorial and this
one but for some reason when I tried it, it didn't work. I do not want to encode HTML but what I want is excaped RSS and output html -- hopefully I explained it correctly here. Here's what I have.
I want to output a <hr /> to break up the number of items in my foreach loop. So far this has not worked. All the items that comes after this item with the description does not show up.
Member
269 Points
3801 Posts
How to output html syntax to RSS feed using XmlWriter.WriteElementString Method?
Jan 30, 2014 09:35 AM|mychucky|LINK
I'm not sure if what I'm trying to do is possible in this realm. However, here's what I'm tyring to do. I'm using XmlWriter.WriteElementString Method to write out my RSS feed from the database. What I like to do is at some point of the data, I like to put some html syntax such as <br /> and hr tag to format the output of the RSS feed a bit better. Any suggestion is much appreciated.
Star
12777 Points
1635 Posts
Re: How to output html syntax to RSS feed using XmlWriter.WriteElementString Method?
Feb 02, 2014 10:03 PM|Terry Guo - MSFT|LINK
Hi mychucky,
The following code is sample for output html to RSS feed using XmlWriter.WriteElementString method:
Hope it helps.
Best Regards,
Terry Guo
Member
269 Points
3801 Posts
Re: How to output html syntax to RSS feed using XmlWriter.WriteElementString Method?
Feb 03, 2014 09:04 AM|mychucky|LINK
That looks very promising. Thank you, Terry. I'll try to implement and see what happen. Thanks so much!
Member
269 Points
3801 Posts
Re: How to output html syntax to RSS feed using XmlWriter.WriteElementString Method?
Feb 10, 2014 11:01 AM|mychucky|LINK
Okay, I've found this tutorial and this one but for some reason when I tried it, it didn't work. I do not want to encode HTML but what I want is excaped RSS and output html -- hopefully I explained it correctly here. Here's what I have.
I want to output a <hr /> to break up the number of items in my foreach loop. So far this has not worked. All the items that comes after this item with the description does not show up.