<?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: Child Node Loop</title><link>https://www.infopathdev.com:443/forums/thread/29201.aspx</link><pubDate>Thu, 05 Jun 2008 19:30:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29201</guid><dc:creator>jonthemoon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29201.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29201</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s what I&amp;#39;m looking for. How do I do that? Resetting my document datasource? (I&amp;#39;m on Infopath 2003 and need to do that in the .js file)&lt;/p&gt;&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Child Node Loop</title><link>https://www.infopathdev.com:443/forums/thread/26977.aspx</link><pubDate>Tue, 04 Mar 2008 15:27:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26977</guid><dc:creator>mcmarotta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26977</wfw:commentRss><description>&lt;p&gt;that&amp;#39;ll do the job... thanks!&lt;/p&gt;</description></item><item><title>Re: Child Node Loop</title><link>https://www.infopathdev.com:443/forums/thread/26976.aspx</link><pubDate>Tue, 04 Mar 2008 14:46:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26976</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26976</wfw:commentRss><description>&lt;p&gt;For a reset I usually just enter a new query parameter but one that does not relate to any data.&amp;nbsp; ID=99999999999 or something.&lt;/p&gt;
&lt;p&gt;Then the returned data fields will all be blank.&lt;/p&gt;
&lt;p&gt;All values reset to empty.&lt;/p&gt;</description></item><item><title>Re: Child Node Loop</title><link>https://www.infopathdev.com:443/forums/thread/26972.aspx</link><pubDate>Tue, 04 Mar 2008 14:15:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26972</guid><dc:creator>mcmarotta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26972.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26972</wfw:commentRss><description>&lt;p&gt;Hi Clay, thanks for the response.&lt;/p&gt;
&lt;p&gt;At this point I&amp;#39;m just trying to reset the values, and hopefully gain a bit of insight into the object model.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m brand new to VB.Net and XPath.&amp;nbsp; I&amp;#39;ve been able to find some info, but most of it is predicated on setting an XPathDocument from a network location (as opposed to the current InfoPath form).&amp;nbsp; Any help or guidance to resources would be much appreciated.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Matt&lt;/p&gt;</description></item><item><title>Re: Child Node Loop</title><link>https://www.infopathdev.com:443/forums/thread/26961.aspx</link><pubDate>Tue, 04 Mar 2008 00:14:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26961</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26961</wfw:commentRss><description>&lt;p&gt;What are you trying to accomplish?&lt;/p&gt;
&lt;p&gt;You just want to reset values or copy values from secondary to main?&lt;/p&gt;</description></item><item><title>Child Node Loop</title><link>https://www.infopathdev.com:443/forums/thread/26938.aspx</link><pubDate>Mon, 03 Mar 2008 17:11:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26938</guid><dc:creator>mcmarotta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26938.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26938</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I spent quite a bit of time to come up with a simple VBScript&amp;nbsp;loop to clear all nodes on an InfoPath 2003 form.&amp;nbsp; This is what I came up with:&lt;/p&gt;
&lt;p&gt;Sub ClearAllNodes()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Dim objNode&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On Error Resume Next&lt;/p&gt;
&lt;p&gt;&amp;nbsp;For Each objNode In XDocument.DOM.selectSingleNode(&amp;quot;//my:myFields&amp;quot;).childNodes&lt;br /&gt;&amp;nbsp;&amp;nbsp;objNode.text=&amp;quot;&amp;quot;&lt;br /&gt;&amp;nbsp;Next&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Well, this was great until I realized that I need to develop my form in InfoPath 2007, and I can no longer use this code for a Browser Enabled Form.&amp;nbsp; Can anyone please help me understand how to loop through Child Nodes to execute this simple procedure?&amp;nbsp; Or perhaps someone may know a better way to convert my managed code into the new object model than what is described here: &lt;a href="http://msdn2.microsoft.com/en-us/library/bb643160.aspx"&gt;http://msdn2.microsoft.com/en-us/library/bb643160.aspx&lt;/a&gt;&amp;nbsp;---&amp;gt; didn&amp;#39;t work for me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>