<?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: Add a row to repeating table</title><link>https://www.infopathdev.com:443/forums/thread/14537.aspx</link><pubDate>Sat, 24 Jun 2006 00:01:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14537</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14537</wfw:commentRss><description>Also, it is generally a good idea to use async = false and validateOnParse = false when creating a custom XML object like this.  This might save you some headache later. Try this:&lt;br /&gt;&lt;br /&gt;SampleDOM = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;SampleDOM.async = false;&lt;br /&gt;SampleDOM.validateOnParse = false;&lt;br /&gt;SampleDOM.load("sampledata.xml");</description></item><item><title>Re: Add a row to repeating table</title><link>https://www.infopathdev.com:443/forums/thread/14536.aspx</link><pubDate>Fri, 23 Jun 2006 23:17:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14536</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14536</wfw:commentRss><description>Yes. That is the correct solution.&lt;br /&gt;&lt;br /&gt;Don't forget you will need to set your namespaces before you can properly select nodes in the sampledata.xml file you just loaded.</description></item><item><title>Re: Add a row to repeating table</title><link>https://www.infopathdev.com:443/forums/thread/14535.aspx</link><pubDate>Fri, 23 Jun 2006 01:00:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14535</guid><dc:creator>djay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14535.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14535</wfw:commentRss><description>Found the solution.&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument2.load takes a filename.&lt;br /&gt;So,&lt;br /&gt;SampleDOM = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;SampleDOM.load("sampledata.xml");&lt;br /&gt;&lt;br /&gt;works.&lt;br /&gt;&lt;br /&gt;-Dan&lt;br /&gt;</description></item><item><title>Re: Add a row to repeating table</title><link>https://www.infopathdev.com:443/forums/thread/14534.aspx</link><pubDate>Thu, 08 Jun 2006 21:04:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14534</guid><dc:creator>djay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14534</wfw:commentRss><description>I'm trying to do the same thing as 10pitus82.  I tried your suggestion of getting the XML structure from sampledata.xml, but I can't figure out how to open the file in C# code.&lt;br /&gt;&lt;br /&gt;The only function I can find to import a file is the XDocument.ImportFile() function.&lt;br /&gt;And the only function I can find to create a new XDocument is the CreateDOM() function, but that returns an IXMLDOMDocument type which can't be converted to an XDocument, so I can't use the ImportFile function.&lt;br /&gt;&lt;br /&gt;So, could you explain how to do this in a bit more detail for those of us that are a bit dense.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;-Dan&lt;br /&gt;</description></item><item><title>Re: Add a row to repeating table</title><link>https://www.infopathdev.com:443/forums/thread/14533.aspx</link><pubDate>Mon, 08 May 2006 23:28:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14533</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14533.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14533</wfw:commentRss><description>ExecuteAction is somewhat flaky. There's lots of places where it doesn't work. The best way to do this is to manually insert the XML you need into your DOM. You can usually grab the XML from the template.xml file or the sampledata.xml file.</description></item><item><title>Add a row to repeating table</title><link>https://www.infopathdev.com:443/forums/thread/12859.aspx</link><pubDate>Mon, 08 May 2006 13:52:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12859</guid><dc:creator>10pitus82</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12859.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12859</wfw:commentRss><description>I have repeating table and a button which adds a row after click. Button has a code:&lt;br /&gt;"thisXDocument.View.ExecuteAction("xCollection::insert","Row_18" );&lt;br /&gt;And this code works but when I put this table into section it doesn't work. What shut I do??</description></item></channel></rss>