<?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: Issue concerning CurrentView.SelectNodes</title><link>https://www.infopathdev.com:443/forums/thread/39116.aspx</link><pubDate>Tue, 03 Mar 2009 15:08:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39116</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39116</wfw:commentRss><description>&lt;p&gt;This appears to be the case with browser enabled forms.&amp;nbsp; If your form is going to be browser enabled, you may need to come up with another way of adding rows to the repeating section.&amp;nbsp; The method in &lt;a class="" href="http://www.infopathdev.com/forums/p/10344/37051.aspx#37051"&gt;this post&lt;/a&gt; is a bit trickier, but may work for your particular situation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;CurrentView.SelectNodes() is for changing the nodes that are selected &lt;em&gt;within the UI&lt;/em&gt;.&amp;nbsp; To modify repeating section data within code, you need to use MainDataSource.CreateNavigator().Select() or something along those lines.&amp;nbsp; If the XPath you&amp;#39;re using is coming back with null values, then you need to figure out what&amp;#39;s wrong with your XPath.&lt;/p&gt;</description></item><item><title>Issue concerning CurrentView.SelectNodes</title><link>https://www.infopathdev.com:443/forums/thread/39114.aspx</link><pubDate>Tue, 03 Mar 2009 14:43:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39114</guid><dc:creator>JohanB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39114.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39114</wfw:commentRss><description>&lt;p&gt;Hello again,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I know I&amp;#39;m kinda spamming this forum last days, but I&amp;#39;m rather new to infopath development.&lt;/p&gt;&lt;p&gt;I met up with a weird issue. When using the CurrentView (XmlFormHostItem.CurrentView) I only get one possibily (being the ViewInfo and 4 other standard things like tostring etc) But not SelectNodes, or anything.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I checked wether my includes were correct, and they are, although as far as my knowledge goes.&lt;/p&gt;&lt;p&gt;These are the includes:&lt;/p&gt;&lt;p&gt;using System.IO;&lt;br /&gt;using Microsoft.Office.InfoPath;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System;&lt;br /&gt;using System.Xml;&lt;br /&gt;using System.Xml.Serialization;&lt;br /&gt;using System.Xml.XPath;&lt;br /&gt;using fc = CVForm.FormsCommunicator;&lt;br /&gt;using Communicator = CVForm.FormsCommunicator.Communicator;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I hope someone can help solving this issue.&lt;/p&gt;&lt;p&gt;I like to change the data within a Repeating Section and I get a NullReferenceException when i just refer to the XPath of the fields. I also would like to add new rows. And SelectNodes would be handy to use to accomplish at least a part of this whole task.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Kind regards,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Johan Beerden &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>