<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to iterate through all nodes in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/19331.aspx</link><pubDate>Tue, 24 Apr 2007 19:13:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19331</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19331</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Hi Akjal,&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;You want to iterate the data repeat the section in that repeating section right. For this you need to use code like &lt;b&gt;for&lt;/b&gt; or &lt;b&gt;foreach&lt;/b&gt; as below:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;IXMLDOMNodeList outerRepeatingSectionNodeList = thisXDocument.DOM.selectNodes(&amp;ldquo;Xpath of your outer repeating section node&amp;rdquo;);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;foreach (IXMLDOMNode outerRepeatingSectionNode in outerRepeatingSectionNodeList)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;IXMLDOMNodeList innerRepeatingSectionNodeList = outerRepeatingSectionNode.selectNodes(&amp;ldquo;Xpath of your inner repeating section node&amp;rdquo;);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;foreach(IXMLDOMNode innerRepeatingSectionNode in innerRepeatingSectionNodeList)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;//Get the node1 value in innerRepeatingSection node&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;string node1Value = innerRepeatingSectionNode.selectSingleNode(&amp;ldquo;Xpath of node1&amp;rdquo;).text;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;//Get the node2 value in innerRepeatingSection node&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;string node1ealue = innerRepeatingSectionNode.selectSingleNode(&amp;ldquo;Xpath of node2&amp;rdquo;).text;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;//Do some code to append this node value to where do you want display the node&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;}&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Note: Above code in C#.&lt;/p&gt;</description></item><item><title>How to iterate through all nodes in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/19323.aspx</link><pubDate>Tue, 24 Apr 2007 13:19:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19323</guid><dc:creator>akjal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19323</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;i have a form created in Infopath 2003 and Visual studio 2005.&amp;nbsp;I have a repeating section1 and it itself contains another repeating section and some non-repeating sections. I want to&amp;nbsp;iterate&amp;nbsp;through each of the repeating section and in turn&amp;nbsp;inner repeating setions and take these values to fill some other forms.&lt;/p&gt;&lt;p&gt;Is there any way to do like this? Is there any mechanism like for loop to go through this repeating section and if so what can be the condition for the loop?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help will be grateful&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>