<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx</link><description>I was having hard time to filer form input from a asp.net page. This page accept text as input and send to database in terms of xml formats. All are ok when the text doest not include any of the following character. It gone for toss when you use these</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#5365222</link><pubDate>Wed, 28 Nov 2007 15:08:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5365222</guid><dc:creator>Rob Gonzalez</dc:creator><author>Rob Gonzalez</author><description>&lt;p&gt;What is the stored procedure solution?&lt;/p&gt;
&lt;p&gt;Does anyone have one? &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5365222" width="1" height="1"&gt;</description></item><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#4658086</link><pubDate>Sun, 21 Oct 2007 00:36:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4658086</guid><dc:creator>jon@gobesthome.com</dc:creator><author>jon@gobesthome.com</author><description>&lt;p&gt;Thanks for saving from a nightout. I had to write a regular expression which allows a defined set of characters and was not able to find out how to put a &amp;quot; in the regular expression. Most of the characters can be directly place inside a Validation expression but not a &amp;quot;. For the benefit of other here I am putting my validation expression also:&lt;/p&gt;
&lt;p&gt;ValidationExpression=&amp;quot;^[0-9a-zA-Z.,!@#$_%/&amp;amp;*:+=&amp;gt;&amp;lt;;\{\}\[\]()\s\-&amp;amp;quot;]&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4658086" width="1" height="1"&gt;</description></item><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#617367</link><pubDate>Thu, 05 Oct 2006 05:26:51 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:617367</guid><dc:creator>Aru</dc:creator><author>Aru</author><description>&lt;p&gt;plz tell me how to replace with other characters like #,$,%,^,*,@,! and so on..................&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=617367" width="1" height="1"&gt;</description></item><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#617362</link><pubDate>Thu, 05 Oct 2006 05:25:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:617362</guid><dc:creator>Aru</dc:creator><author>Aru</author><description>&lt;p&gt;is there any other ways to replace the special characters other than the above mentioned five&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=617362" width="1" height="1"&gt;</description></item><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#486137</link><pubDate>Fri, 25 Aug 2006 11:03:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:486137</guid><dc:creator>annamalai</dc:creator><author>annamalai</author><description>&lt;p&gt;nice &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=486137" width="1" height="1"&gt;</description></item><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#439916</link><pubDate>Thu, 09 Mar 2006 13:11:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:439916</guid><dc:creator>Hema</dc:creator><author>Hema</author><description>Hi Suresh,&lt;br&gt;Did you happend get through this problem, how did you fix this. I am in the same boat. if possible pls share your thoughts on this.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Hema&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=439916" width="1" height="1"&gt;</description></item><item><title>re: Characters filteration or validation for XML document.</title><link>http://weblogs.asp.net/sbehera/archive/2006/02/24/438996.aspx#438998</link><pubDate>Fri, 24 Feb 2006 21:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:438998</guid><dc:creator>Stuart Ballard</dc:creator><author>Stuart Ballard</author><description>How about just System.Web.HttpUtility.HtmlEncode(str)?&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=438998" width="1" height="1"&gt;</description></item></channel></rss>