By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,638 Members | 1,983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,638 IT Pros & Developers. It's quick & easy.

rss feed : escaped invalid xml chars display incorrectly in browser

P: n/a
I am using StringBuilder to build a string containing xml that is
Response.Write() to the browser as an rss feed.

To replace invalide xml chars, I am using code fragments such as

xmlDocument.Append("<description>");
xmlDocument.Append(SecurityElement.Escape(productD escription));
xmlDocument.Append("</description>");

The xml string I generate does validate as a valid rss feed at
http://validator.w3.org/feed/check.cgi

However, when displayed in the browser, the escaped chars are not translated
back to their original chars, so I get displayed text such as :

Here&apos;s a new fascinating and fun way to annoy your neighbor&apos;s dog.

May 4 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a


John A Grandy wrote:
I am using StringBuilder to build a string containing xml that is
Response.Write() to the browser as an rss feed.


Don't use StringBuilder to construct XML, use XmlTextWriter, see my
response to your earlier question.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
May 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.