<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>validation pattern for allowing non-empty string in xml file</title><link>http://blogs.msdn.com/b/neerajag/archive/2005/08/12/450723.aspx</link><description>I was trying to validate a xml file using xsd wherein a node value should be non-empty. Means there should be atleast one non-whitespace character into that. After lots of googling, I finally wrote up a small pattern to validate that. Here is the fragment</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: validation pattern for allowing non-empty string in xml file</title><link>http://blogs.msdn.com/b/neerajag/archive/2005/08/12/450723.aspx#9831312</link><pubDate>Mon, 13 Jul 2009 12:11:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9831312</guid><dc:creator>valdating a element such that, it must contain a child elemet</dc:creator><description>&lt;p&gt;Consider a element :&lt;/p&gt;
&lt;p&gt;&amp;lt;A&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;B/&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;C/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/A&amp;gt;&lt;/p&gt;
&lt;p&gt;A either contain B or C or both. The only invalid condition is empty A.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9831312" width="1" height="1"&gt;</description></item><item><title>re: validation pattern for allowing non-empty string in xml file</title><link>http://blogs.msdn.com/b/neerajag/archive/2005/08/12/450723.aspx#9632084</link><pubDate>Wed, 20 May 2009 14:32:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9632084</guid><dc:creator>Aharon Levine</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Just what I needed!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9632084" width="1" height="1"&gt;</description></item></channel></rss>