473,756 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

rss feed : escaped invalid xml chars display incorrectly in browser

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.App end("<descripti on>");
xmlDocument.App end(SecurityEle ment.Escape(pro ductDescription ));
xmlDocument.App end("</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
1 1318


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1662
by: ask josephsen | last post by:
Hi there Can anyone help me make my rss feed show characters like "ÆØÅæøå"? According to http://aggregator.userland.com/validator the feed is fine and it works fine in a dedicated reader. But when I open it in mozilla or IE the special chars fail, other sites have better luck (http://rss.asdf.dk/aok.rss), but I cant see the difference. My problematic page is at: http://www.minreklame.dk/rss.php
4
2462
by: Mark J. McGinty | last post by:
Greets, Part of the content of one of our web pages uses wingdings and Chr(239) through Chr(242) (which are little arrow outlines, though that's not really important.) It worked just fine in Windows 2000 Server, but now under Server 2003 it seems that characters above 127 get converted somehow, and our code no longer produces the desired effect.
13
3010
by: Oxns | last post by:
Hi, Can anyone point me at the class to convert a string so that it displays escaped chars as \r, \n etc. please Its done in the 2005 debugger so I hope its available as a class ??. Thanks Graham
0
1283
by: Andy Lim | last post by:
Hi all, In my recent project, my client uses Chinese Star software to type the articles in chinese (using MS Word), and I need to display these articles within ASP.NET pages. And, for this very purpose I also installed a copy of Chinese Star software in my development machine, so I can correctly renders the doc correctly. Ussually I just copy the text from the original DOC file they supplied, and paste it onto a blank ASP.NET page.
0
1256
by: Andy Lim | last post by:
Hi all, In my recent project, my client uses Chinese Star software to type the articles in chinese (using MS Word), and I need to display these articles within ASP.NET pages. And, for this very purpose I also installed a copy of Chinese Star software in my development machine, so I can correctly renders the doc correctly. Ussually I just copy the text from the original DOC file they supplied, and paste it onto a blank ASP.NET page.
0
983
by: Andy Lim | last post by:
Hi all, In my recent project, my client uses Chinese Star software to type the articles in chinese (using MS Word), and I need to display these articles within ASP.NET pages. And, for this very purpose I also installed a copy of Chinese Star software in my development machine, so I can correctly renders the doc correctly. Ussually I just copy the text from the original DOC file they supplied, and paste it onto a blank ASP.NET page.
5
2435
by: Ed Flecko | last post by:
Hi folks, I'm trying to figure out this whole RSS feed thing. I've created my .xml file to use for my feed, and my browsers "recognize" that I have an RSS feed, and you can subscribe, etc., etc. Here's why I "think" I want to use an RSS feed, and what I'm confused about. I have one file (and one file only) on my web site that changes
8
2340
by: Greg C. | last post by:
I tried tackling this problem about 6 months ago, but after going almost completely insane I gave up, since my news feed seemed to display just fine anyways. However, in an effort to have my feeds in complete compliance, I am trying to deal with the problem again. When I try to validate my feeds I get the following error: Line 17, column 0: Invalid HTML: unknown declaration: u'BR', at line 5, column 124 (277 occurrences) &lt;BR&gt;&quot;&lt;a...
0
1534
by: stefcollect | last post by:
Hi all, I am pretty new to PHP and am stuck on - what I think - is a generic string handling problem. I need to read and manipulate some HTML files and have a problem in getting some substrings found even when - it is clear - strings are there. (see a HTML chunk I need to edit at the end of this email). In particular, the following functions are "randomly" working for me:
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9287
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9886
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.