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's a new fascinating and fun way to annoy your neighbor's dog. 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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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.
|
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
|
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.
|
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.
| |
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.
|
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
|
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)
<BR>"<a...
|
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:
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |