Replace \" from a string

I have a long string (500,000+ characters) that contains an RSS feed in XML format. I'm trimming some parts of the XML to clean up the information before parsing it. However, when I call this code:

string rssData = string.Empty;
//Get RSS data here
rssData = rssData.Replace(""", string.Empty);

The backslash characters are not removed. Is there a limitation to doing replacements of a character when the string is that long?

Here's an example snippet of the string being replaced. I'm removing the backslashes to properly parse the quotation marks:

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cc="http://web.resource.org/cc/"......

EDIT: It turns out that the reason I'm getting replacement errors is because all backslashes are succeeded by a quotation mark, which must be causing some sort of error in the string replacement.

The updated question: How do I remove the backslash from the sequence " using string.Replace?

链接地址: http://www.djcxy.com/p/94214.html

上一篇: Javascript搜索和替换不工作

下一篇: 用字符串替换\“