<?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: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/71812.aspx</link><pubDate>Mon, 07 Nov 2011 07:14:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71812</guid><dc:creator>RoseMary</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71812</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;When using DeleteSelf() method it delets the item and also makes the list disabled. Please help&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29187.aspx</link><pubDate>Thu, 05 Jun 2008 14:03:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29187</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29187</wfw:commentRss><description>&lt;p&gt;This blog post may help:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/david/archive/2007/08/23/implementing-cascading-dropdowns-in-forms-server.aspx"&gt;http://www.infopathdev.com/blogs/david/archive/2007/08/23/implementing-cascading-dropdowns-in-forms-server.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29180.aspx</link><pubDate>Wed, 04 Jun 2008 23:34:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29180</guid><dc:creator>SAK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29180</wfw:commentRss><description>&lt;p&gt;I am still struggling to get this implemented. Please help. I am using InfoPath 2007 and need to upload this browser enabled form in to SharePoint&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;First List Box:&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;This first list box lists all the items from Sharepoint list using web service. User will be selecting one or more item from this in to second list box.&lt;/p&gt;&lt;p&gt;1. I defined a data connection to receive data from SharePoint Web Service.&lt;/p&gt;&lt;p&gt;2. I inserted a repeating section and then I inserted a list box control on to that.&lt;/p&gt;&lt;p&gt;3. This list box is bound to non repeating field called AppListField in Main Data Source &lt;/p&gt;&lt;p&gt;4. In the properties of the list box I selected &amp;quot;look up values from an external data source&amp;quot; and selected the data connection I formed in step 1 above. I have selected Id for value field and App Name for Display Name.&lt;/p&gt;&lt;p&gt;5. Is it all okay?&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;Second List Box&lt;/b&gt;&lt;/u&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;1. I inserted a list box control in to a repeating section.&lt;/p&gt;&lt;p&gt;2. I&amp;nbsp; created a &lt;b&gt;repeating group &lt;/b&gt;in Main Data Source&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3. The repeating section is bound to the repeating group&lt;/p&gt;&lt;p&gt;4. I created another &lt;b&gt;non repeating&lt;/b&gt; field under repeating group and bound the second list box to that. Am I right in doing this way?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;Click Event Code:&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;1. On click event of the button&amp;nbsp; I am able to get the value of the selected item from first list box in to the variable&lt;br /&gt;&amp;nbsp;AppListField in MainDataSource. I donot know how to get the display name.&lt;/p&gt;&lt;p&gt;2. Once I get the value I am adding it to the XML file and it never shows there. I have given the code below.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;XML File:&lt;/u&gt; &lt;/b&gt;Initially this&amp;nbsp; XML will be empty as the user has not added anything.&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;SelectedAppListGroups&amp;gt;&lt;br /&gt;
&amp;lt;SelectedAppListGroup&amp;gt;&amp;lt;ImpactAppId/&amp;gt;&amp;lt;ImpactAppname/&amp;gt;&amp;lt;/SelectedAppListGroup&amp;gt;&lt;br /&gt;
&amp;lt;/SelectedAppListGroups&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;&amp;nbsp;Code&amp;nbsp; on Button Click Event&lt;/b&gt;&lt;/u&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator AppListField = DOM.SelectSingleNode(&amp;quot;/my:myFields/my:AppListField&amp;quot;, this.NamespaceManager);&amp;nbsp; //getting selected item from first list box.&lt;br /&gt;&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; DataSource ds = DataSources[&amp;quot;ImpactAppList&amp;quot;];&amp;nbsp; //XML file data source tied to second list box&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; XPathNavigator selectedAppList&amp;nbsp; = ds.CreateNavigator(); &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; XPathNavigator SelectedAppGroup = selectedAppList.SelectSingleNode(&amp;quot;/SelectedAppListGroups/SelectedAppListGroup&amp;quot;); //&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; XPathNavigator ImpactAppIdNode = selectedAppList.SelectSingleNode(&amp;quot;/SelectedAppListGroups/SelectedAppListGroup/ImpactAppId&amp;quot;);&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; XPathNavigator ImpactAppnameNode = selectedAppList.SelectSingleNode(&amp;quot;/SelectedAppListGroups/SelectedAppListGroup/ImpactAppname&amp;quot;);&lt;br /&gt;&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; SelectedAppGroup.AppendChildElement(&amp;quot;&amp;quot;, &amp;quot;ImpactAppId&amp;quot;, &amp;quot;&amp;quot;, AppListField.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; SelectedAppGroup.AppendChildElement(&amp;quot;&amp;quot;, &amp;quot;ImpactAppname&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;Test33&amp;quot;); //I am adding a dummy value because I am not able to access the display name from First List box&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29138.aspx</link><pubDate>Tue, 03 Jun 2008 20:45:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29138</guid><dc:creator>SAK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29138</wfw:commentRss><description>&lt;p&gt;Thanks for&amp;nbsp; the reply. If I create a XML file for my second list box that would contain nothing to start with and would need to add items to that XML file whenever the user clicks on the button by selecting the items in first list box. Please confirm. Also will this XML file be created one for each form when I upload the form in to SharePoint and when users create new forms. Thanks.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29118.aspx</link><pubDate>Tue, 03 Jun 2008 10:01:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29118</guid><dc:creator>rohit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29118.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29118</wfw:commentRss><description>&lt;p&gt;Hi SAK,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using Infopath 2007 object model.&lt;/p&gt;
&lt;p&gt;then following is the solution.&lt;/p&gt;
&lt;p&gt;You have to bind your second list box box to repeating field of the xml file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29106.aspx</link><pubDate>Mon, 02 Jun 2008 17:38:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29106</guid><dc:creator>SAK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29106</wfw:commentRss><description>&lt;p&gt;Greg/ Rohit&lt;/p&gt;&lt;p&gt;I am also working to implement the same
functionality. My goal is to implement a &lt;b&gt;browser enabled form using
InfoPath 2007 to upload in SharePoint&lt;/b&gt;. My first list box gets it items
from SharePoint WebService. So my first list box is populating all the items with no problem. Now the problem I face is, how to move the
items to second list box on click of a button. &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Should my second list box should be a repeating field?&lt;/li&gt;&lt;li&gt;Should I need to connect my second list box to a XML file?&lt;/li&gt;&lt;li&gt;On click of a button do I need to update the XML file to add items to my second list box?&lt;/li&gt;&lt;li&gt;The example from http://www.infopathdev.com/files/folders/examples/entry279.aspx uses javascript and I believe I cannot use the same I need to have the form browser enabled.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Please help !! Thanks&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29078.aspx</link><pubDate>Sat, 31 May 2008 08:56:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29078</guid><dc:creator>rohit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29078</wfw:commentRss><description>&lt;p&gt;Hi Greg,&lt;/p&gt;
&lt;p&gt;I am using &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;oFromItem.&lt;font size="2"&gt;DeleteSelf();&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;to removing item from first list box after inserting it into another list box control as both are binds to the secondary data source,but it won&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please help me......&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/29036.aspx</link><pubDate>Thu, 29 May 2008 16:12:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29036</guid><dc:creator>rohit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29036</wfw:commentRss><description>&lt;p&gt;Sorry I was on long vacation.&lt;/p&gt;
&lt;p&gt;thanks a lot greg.&lt;/p&gt;
&lt;p&gt;I have one more problem :)&lt;/p&gt;
&lt;p&gt;How to remove item from listbox after inserting it into another list box in C#. I am using XPathNavigator.&lt;/p&gt;
&lt;p&gt;As you done it in javascript i.e.oFromItem.text=&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;please suggest it.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28436.aspx</link><pubDate>Wed, 30 Apr 2008 19:37:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28436</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28436.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28436</wfw:commentRss><description>&lt;p&gt;There is not. You will need to use the control that is designed to allow multiple selections.&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28410.aspx</link><pubDate>Wed, 30 Apr 2008 06:56:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28410</guid><dc:creator>rohit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28410</wfw:commentRss><description>&lt;p&gt;is there no any way to&amp;nbsp;allow &amp;nbsp;listbox control to select mulitiple values in infopath 2007.&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28394.aspx</link><pubDate>Tue, 29 Apr 2008 20:21:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28394</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28394</wfw:commentRss><description>&lt;p&gt;InfoPath 2003 does NOT include a multi-select box.&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28393.aspx</link><pubDate>Tue, 29 Apr 2008 20:21:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28393</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28393</wfw:commentRss><description>&lt;p&gt;IP07 includes the new Multiple-Selection List Box control which allows for multiple selections. But I have not used this control and do not know what kind of affect it will have on the effectiveness of the code you now have running. If it requries code changes when switching to that control, you&amp;#39;ll need to figure those out on your own.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28379.aspx</link><pubDate>Tue, 29 Apr 2008 10:10:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28379</guid><dc:creator>rohit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28379.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28379</wfw:commentRss><description>&lt;p&gt;Thanks Greg,&lt;/p&gt;
&lt;p&gt;It works.&lt;/p&gt;
&lt;p&gt;But How should i make LIstBox&amp;#39;s property to multiple selection.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28365.aspx</link><pubDate>Mon, 28 Apr 2008 21:51:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28365</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28365</wfw:commentRss><description>&lt;p&gt;I should also state that the InsertAfter() call does a copy, not a move. So if your intent was to move the item and not just copy it, then you&amp;#39;ll need to call DeleteSelf() on the oFromItem after you insert it into the To list.&lt;/p&gt;</description></item><item><title>Re: Selecting items in one listbox and putting them into another listbox  on button click</title><link>https://www.infopathdev.com:443/forums/thread/28361.aspx</link><pubDate>Mon, 28 Apr 2008 21:36:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28361</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28361</wfw:commentRss><description>&lt;p&gt;Your code doesn&amp;#39;t even compile:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;A local variable named &amp;#39;oFromItem&amp;#39; is already defined in this scope&amp;nbsp;FormCode.cs&amp;nbsp;45&amp;nbsp;28&lt;br /&gt;Error&amp;nbsp;2&amp;nbsp;The name &amp;#39;sFromItem&amp;#39; does not exist in the current context&amp;nbsp;FormCode.cs&amp;nbsp;46&amp;nbsp;68&lt;br /&gt;Error&amp;nbsp;3&amp;nbsp;A local variable named &amp;#39;oToItem&amp;#39; is already defined in this scope&amp;nbsp;FormCode.cs&amp;nbsp;48&amp;nbsp;28&lt;br /&gt;Error&amp;nbsp;4&amp;nbsp;The name &amp;#39;sToItem&amp;#39; does not exist in the current context&amp;nbsp;FormCode.cs&amp;nbsp;48&amp;nbsp;79&lt;/p&gt;
&lt;p&gt;Also, you try to select //my:Temp, which wasn&amp;#39;t listed in your DataSource.&lt;/p&gt;
&lt;p&gt;- - - - -&lt;/p&gt;
&lt;p&gt;Try this:&lt;/p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; nav = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator();&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sFromChoice = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:SelectJobContext&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oFromItem = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:List1/my:Item[.=&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + sFromChoice + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sToChoice = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:SelectedJobContext&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oToItem = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:List2/my:Item[.=&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + sToChoice + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; != oFromItem &amp;amp;&amp;amp; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; != oToItem)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oToItem.InsertAfter(oFromItem);&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>