<?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: How to insert data into InfoPath form's XML file?</title><link>https://www.infopathdev.com:443/forums/thread/31841.aspx</link><pubDate>Mon, 01 Sep 2008 02:39:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31841</guid><dc:creator>Magic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31841</wfw:commentRss><description>&lt;p&gt;Thanks Shiva very much.&lt;/p&gt;
&lt;p&gt;But now I encounter another problem. I have input some data into InfoPath form&amp;#39;s XML file. Then, how to save the file?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to insert data into InfoPath form's XML file?</title><link>https://www.infopathdev.com:443/forums/thread/31739.aspx</link><pubDate>Wed, 27 Aug 2008 09:41:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31739</guid><dc:creator>Magic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31739</wfw:commentRss><description>&lt;p&gt;Thanks &lt;strong&gt;Shiva.&lt;/strong&gt; It is a great help.&lt;/p&gt;</description></item><item><title>Re: How to insert data into InfoPath form's XML file?</title><link>https://www.infopathdev.com:443/forums/thread/31732.aspx</link><pubDate>Wed, 27 Aug 2008 08:00:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31732</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31732.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31732</wfw:commentRss><description>&lt;p&gt;Hello Welcome to the Forums,&lt;/p&gt;
&lt;p&gt;Here is the code to load the xml file,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;//filePath is the XML file name or path of where it is available.&lt;/p&gt;
&lt;p&gt;//namespaces is the namespace of your file. If you do not have any namespace then pass the empty string.&lt;/p&gt;
&lt;p&gt;private IXMLDOMDocument2 LoadXmlDocument(string filePath, string namespaces)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;IXMLDOMDocument2 xmlDocument = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmlDocument.async = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmlDocument.validateOnParse = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmlDocument.load(filePath);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmlDocument.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, namespaces);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return xmlDocument;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Note: Above code in C#.&lt;/p&gt;</description></item><item><title>How to insert data into InfoPath form's XML file?</title><link>https://www.infopathdev.com:443/forums/thread/31729.aspx</link><pubDate>Wed, 27 Aug 2008 06:44:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31729</guid><dc:creator>Magic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31729</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Currently I get the data from database, and want to&amp;nbsp;insert it into some of my InfoPath project&amp;#39;s existing XML files.&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t know how to do load the existing XML files so that I could do some operations on them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Any idea would be greatly appreciated!&lt;/strong&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>