<?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: copying Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/91210.aspx</link><pubDate>Tue, 09 Jul 2013 11:12:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91210</guid><dc:creator>jnava121</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91210</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think when you add repeating table nodes programmatically you have to delete the first empty item on the new table (after you add the nodes). &lt;br /&gt;&lt;br /&gt;XPathNavigator itemNav=domNav.SelectSingleNode(&amp;quot;myfields/my:RepeatingField[1]&amp;quot;,NamespaceManger)&lt;br /&gt;if(itemNav!=null)&lt;br /&gt;{&lt;br /&gt;itemNav.DeleteSelf();&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;</description></item><item><title>copying Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/89746.aspx</link><pubDate>Tue, 14 May 2013 16:05:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89746</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=89746</wfw:commentRss><description>what i am trying to do here is copy a repeating table using InsertBefore method. The problem i am  having is when i click on the copy button for the first time, copying seems to work fine which by creating a new table(2) beneath the current one(1) with the fields that i require . The problem happens when i click copy button again from first table, a new repeating table gets created before the 1st repeating table. not sure what is causing this to happen. Any help would be greatly appreciated..

Many Thanks

Please see the attached code for reference.</description></item></channel></rss>