<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Avoid saving a form if unvalid data</title><link>https://www.infopathdev.com:443/forums/thread/24065.aspx</link><pubDate>Tue, 30 Oct 2007 20:55:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24065</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24065</wfw:commentRss><description>&lt;p&gt;Cool! Glad to have helped!&lt;/p&gt;</description></item><item><title>Re: Avoid saving a form if unvalid data</title><link>https://www.infopathdev.com:443/forums/thread/24045.aspx</link><pubDate>Tue, 30 Oct 2007 09:21:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24045</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24045</wfw:commentRss><description>&lt;p&gt;Hi Greg. Thanks a lot.  &lt;/p&gt;&lt;p&gt;I have tested with this code:  if(XDocument.Errors.Count &amp;gt; 0) &lt;br /&gt;It works!&lt;br /&gt;Best regards. Philippe&lt;/p&gt;</description></item><item><title>Re: Avoid saving a form if unvalid data</title><link>https://www.infopathdev.com:443/forums/thread/24037.aspx</link><pubDate>Mon, 29 Oct 2007 18:18:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24037</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24037</wfw:commentRss><description>&lt;p&gt;The DOM conatins an Errors object which allows you to determin whether there are any errors in the form. There&amp;#39;s a Count property you can use. If the Count == 0, there&amp;#39;s no errors.&lt;/p&gt;</description></item><item><title>Avoid saving a form if unvalid data</title><link>https://www.infopathdev.com:443/forums/thread/24014.aspx</link><pubDate>Fri, 26 Oct 2007 13:27:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24014</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24014.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24014</wfw:commentRss><description>&lt;p&gt;Hi&lt;br /&gt;I would like to ask, if there is a possibility to check by code,  if data validation is successfull or not. &lt;br /&gt;In my case, the form can be saved or sent, although some data are not valid, e.g. blank field.&lt;br /&gt;Thanks for your help. Best regards.Philippe</description></item></channel></rss>