<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath 2003 Clearing text (data) fields</title><link>https://www.infopathdev.com:443/forums/thread/40994.aspx</link><pubDate>Mon, 27 Apr 2009 05:03:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40994</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40994.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40994</wfw:commentRss><description>Hi, 
&lt;p&gt;I think you are setting the values for secondary data source. For that first get the secondary dom and from that get the nodes and set the values. IF you check out you will get ‘&lt;code&gt;XDocument.DOM.selectSingleNode(&amp;quot;dfs:myFields/dfs:dataFields/d:tbl_GC100/@Lockbox&amp;quot;)&amp;#39; value as null.&lt;/code&gt;&lt;/p&gt;</description></item><item><title>InfoPath 2003 Clearing text (data) fields</title><link>https://www.infopathdev.com:443/forums/thread/40980.aspx</link><pubDate>Fri, 24 Apr 2009 19:54:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40980</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40980</wfw:commentRss><description>&lt;p&gt;Good afternoon.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I was wondering if anyone knew how to clear text fields. I have the following code:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;XDocument.DOM.selectSingleNode(&amp;quot;dfs:myFields/dfs:dataFields/d:tbl_GC100/@Lockbox&amp;quot;).Text = Empty XDocument.DOM.selectSingleNode(&amp;quot;dfs:myFields/dfs:dataFields/d:tbl_GC100/@Cash_Deposit_Date&amp;quot;).Text = Empty XDocument.DOM.selectSingleNode(&amp;quot;dfs:myFields/dfs:dataFields/d:tbl_GC100/@Batch_Number&amp;quot;).Text = Empty &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I have tried = Null, = &amp;quot;&amp;quot;, and = Empty, to no avail. I figured this should be pretty straight forward.&lt;/p&gt;
&lt;p&gt;This is on a command button click event.&lt;/p&gt;
&lt;p&gt;Thank you, WHEELS&lt;/p&gt;</description></item></channel></rss>