<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: loop through repeated section</title><link>https://www.infopathdev.com:443/forums/thread/63240.aspx</link><pubDate>Sun, 16 Jan 2011 14:36:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63240</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63240</wfw:commentRss><description>Hi, as Jimmy said you have to use relative Xpath:
&lt;br /&gt;
string EmplID = rows.Current.SelectSingleNode(&amp;quot;EMPLID&amp;quot;, NamespaceManager).Value;
&lt;br /&gt;
instead of 
&lt;br /&gt;
string EmplID = rows.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetEmployeeDataResponse/tns:GetEmployeeDataResult/NewDataSet/EmplEdu/EMPLID&amp;quot;, NamespaceManager).Value;</description></item><item><title>Re: loop through repeated section</title><link>https://www.infopathdev.com:443/forums/thread/63238.aspx</link><pubDate>Sun, 16 Jan 2011 13:04:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63238</guid><dc:creator>Amigo1982</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63238.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63238</wfw:commentRss><description>&lt;p&gt;I didnt understand&lt;/p&gt;</description></item><item><title>Re: loop through repeated section</title><link>https://www.infopathdev.com:443/forums/thread/63237.aspx</link><pubDate>Sun, 16 Jan 2011 12:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63237</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63237</wfw:commentRss><description>&lt;p&gt;Two words: relative XPath.&lt;/p&gt;</description></item><item><title>loop through repeated section</title><link>https://www.infopathdev.com:443/forums/thread/63231.aspx</link><pubDate>Sun, 16 Jan 2011 11:51:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63231</guid><dc:creator>Amigo1982</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63231.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63231</wfw:commentRss><description>&lt;p&gt;Hi, i m trying to do loop through rows in repeating table, i managed to do that. if there is 3 lines i m able to to loop 3 times but the the value are not changing they keep the first line data&lt;/p&gt;
&lt;p&gt;here is my code:&lt;/p&gt;
&lt;p&gt;XPathNavigator navigator = MainDataSource.CreateNavigator();&lt;br /&gt;XPathNodeIterator rows = navigator.Select(&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetEmployeeDataResponse/tns:GetEmployeeDataResult/NewDataSet/EmplEdu&amp;quot;, NamespaceManager);&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;while (rows.MoveNext())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;string EmplID = rows.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetEmployeeDataResponse/tns:GetEmployeeDataResult/NewDataSet/EmplEdu/EMPLID&amp;quot;, NamespaceManager).Value;&lt;/p&gt;
&lt;p&gt;string Education = rows.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetEmployeeDataResponse/tns:GetEmployeeDataResult/NewDataSet/EmplEdu/Education&amp;quot;, NamespaceManager).Value;&lt;br /&gt;string Desc = rows.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetEmployeeDataResponse/tns:GetEmployeeDataResult/NewDataSet/EmplEdu/Descr&amp;quot;, NamespaceManager).Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;</description></item></channel></rss>