<?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: repeating section...one field needed???</title><link>https://www.infopathdev.com:443/forums/thread/50740.aspx</link><pubDate>Tue, 19 Jan 2010 15:42:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50740</guid><dc:creator>golden_shiner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50740.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50740</wfw:commentRss><description>&lt;p&gt;I apologize for not being very clear. Basically,&amp;nbsp; after the user fills out this form, and before they save it, they click on &amp;quot;check&amp;quot; button, which trigers an event and goes through some of the fields for make comparisons. and that is when I need to access that SPECIES_ID field from the repeating sections and have not been able to. Thanks again for any help. &lt;/p&gt;</description></item><item><title>Re: repeating section...one field needed???</title><link>https://www.infopathdev.com:443/forums/thread/50666.aspx</link><pubDate>Sat, 16 Jan 2010 03:10:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50666</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50666</wfw:commentRss><description>Well, I&amp;#39;m not sure how you expect to access data from a file that doesn&amp;#39;t exist, which is what your code is apparently trying to do.&amp;nbsp; Could you give a bit more detail about what you&amp;#39;re trying to do?&lt;br /&gt;</description></item><item><title>Re: repeating section...one field needed???</title><link>https://www.infopathdev.com:443/forums/thread/50654.aspx</link><pubDate>Fri, 15 Jan 2010 18:16:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50654</guid><dc:creator>golden_shiner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50654</wfw:commentRss><description>&lt;p&gt;well, the thing is, the application breaks when it hits &lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;doc.Load(NFile);&amp;nbsp;&amp;nbsp; // NFile contains the file Name&lt;br style="mso-special-character:line-break;" /&gt;&lt;br style="mso-special-character:line-break;" /&gt;I think it is beacause NFile only contains the file name not a path, as the xml file is not saved yet. so I don&amp;#39;t know if there is any other way to acces the SPECIES_ID field, or maybe another way to point to this &amp;#39;unsaved&amp;#39; xml file...any help is appreciated &lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: repeating section...one field needed???</title><link>https://www.infopathdev.com:443/forums/thread/50653.aspx</link><pubDate>Fri, 15 Jan 2010 17:58:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50653</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50653.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50653</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Does following that code with this not work?:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;string[] ids = new string[TestNodeList.Count];&lt;br /&gt;int i = 0;&lt;br /&gt;foreach(XPathNavigator speciesId in TestNodeList)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ids[i] = speciesId.Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>repeating section...one field needed???</title><link>https://www.infopathdev.com:443/forums/thread/50648.aspx</link><pubDate>Fri, 15 Jan 2010 17:03:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50648</guid><dc:creator>golden_shiner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50648</wfw:commentRss><description>&lt;p&gt;hello all!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a repeating section such as:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;SPECIES_ID&lt;br /&gt;&amp;nbsp;count&lt;br /&gt;&amp;nbsp;length&lt;br /&gt;&amp;nbsp;weight&lt;br /&gt;&amp;nbsp;notes&lt;br /&gt;I need to only access SPECIES_ID value for each repeating section and store it into an array. I am working in C#, and I need to do this before saving the infopath form.&lt;/p&gt;
&lt;p&gt;I have tried using:&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;br /&gt;XmlDocument doc = new XmlDocument();&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; doc.Load(NFile);&amp;nbsp;&amp;nbsp; // NFile contains the file Name&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; XmlElement root = doc.DocumentElement;&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; XmlNodeList TestNodeList;&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; TestNodeList = root.SelectNodes(&amp;quot;/my:myFFIM_base_table/my:Species_Records/my:SpeciesGroup/my:SPECIES_ID&amp;quot;, NamespaceManager);&lt;br /&gt;but to no success. Can anyone point me into the right direction as to how to do this? Thank You!!&lt;/p&gt;</description></item></channel></rss>