<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Load xml from db on form load</title><link>https://www.infopathdev.com:443/forums/thread/99621.aspx</link><pubDate>Thu, 16 Oct 2014 14:10:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99621</guid><dc:creator>SteveJones</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99621</wfw:commentRss><description>&lt;p&gt;Alas ... that picture was taken around 2006 or so. it was my last bottle, and it was even better than in 2001.&lt;/p&gt;&lt;p&gt;Yes, I got it working. I created a web service method to retrieve the xml from the database, added a data connection in Infopath.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In FormEvents_Loading&amp;nbsp;I do the following:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Create an xpath navigator on main datasource&lt;/li&gt;&lt;li&gt;query the connection&lt;/li&gt;&lt;li&gt;load the xml into an xmldoc&lt;/li&gt;&lt;li&gt;then using xpathnav.replaceself I selectively replace specific nodes in xnav with the same nodes in xdoc&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Load xml from db on form load</title><link>https://www.infopathdev.com:443/forums/thread/99565.aspx</link><pubDate>Wed, 15 Oct 2014 02:56:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99565</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99565</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Steve,&lt;/p&gt;&lt;p&gt;Sorry I never responded. Congrats on the best of show beer. How was it after 10+ years?&lt;/p&gt;&lt;p&gt;Did you ever get it to work?&lt;/p&gt;&lt;p&gt;We had another customer ask us the same question today.&amp;nbsp;&amp;nbsp;SwapDom is an easy and codeless way to do it.&lt;/p&gt;&lt;p&gt;Cheers,&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Load xml from db on form load</title><link>https://www.infopathdev.com:443/forums/thread/86502.aspx</link><pubDate>Mon, 28 Jan 2013 13:51:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86502</guid><dc:creator>SteveJones</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86502</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;That is a 6 oz bottle of a homebrewed Barleywine (a very strong pale ale)&amp;nbsp;that I made in 1999. It won Best of Show at&amp;nbsp;the national homebrew competition in 2001. &lt;/p&gt;
&lt;p&gt;I am really close to getting this to work. My web service method does return the xml with the processing instructions, and I&amp;#39;m thinking that I need to use xpath replaceself on the root node, but that is a bit tricky to get working. I do&amp;nbsp;have an instance of this process that is&amp;nbsp;working with an Infopath 2003 form with VB Script (I did not write that one). I&amp;#39;m trying to convert that process to Infopath 2010 using C# ... figuring out the equivalent objects and syntax is my real challenge.&lt;/p&gt;</description></item><item><title>Re: Load xml from db on form load</title><link>https://www.infopathdev.com:443/forums/thread/86483.aspx</link><pubDate>Sat, 26 Jan 2013 22:57:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86483</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86483</wfw:commentRss><description>&lt;p&gt;Hi Steve,&lt;/p&gt;&lt;p&gt;What are you drinking in your avatar picture?&lt;/p&gt;&lt;p&gt;To answer your question, you would ideally create a Web service that could run a query to get the XML from SQL. There are a lot of tricks to do this corectly, for example you need to make sure that you don&amp;#39;t strip out the processing-instructions at the top of the XML that tell Windows or the browser that it&amp;#39;s an InfoPath. Otherwise, it just&amp;nbsp;opens plain XML. &lt;/p&gt;&lt;p&gt;Fortunately, we&amp;#39;ve done all the work to make this easy and we have an inexpensive Web service called &amp;nbsp;DBXL that has a Web method called GetDocument which supports this. It also supports submitting the forms and a boatload of other features. &lt;/p&gt;&lt;p&gt;Also, keep in mind&amp;nbsp;that just getting the XML may not be all you have to do. You may have to swap the XML out from the newly opened form and replace it with this XML. The qRules plugin for InfoPath has a SwapDom command that was especially created for this task. There&amp;#39;s a free trial for both and the products are inexpensive and easy to setup, plus Qdabra provides incredible support.&lt;/p&gt;&lt;p&gt;On the other hand, you could write code to do it yourself, but you&amp;#39;d have to figure that out and do it and it would take oodles of time and you may get stuck. We&amp;#39;ve done all of the work for this scenario and are here to help.&amp;nbsp;The InfoPathDev forum is free. We&amp;nbsp;pay our employees to respond to posts in the forum and we watch the metrics weekly to make sure we are above 90%. In order to support that effort, we sell these essential tools. They save you time and money and help us keep the forum going.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your support,&lt;/p&gt;</description></item><item><title>Load xml from db on form load</title><link>https://www.infopathdev.com:443/forums/thread/86365.aspx</link><pubDate>Thu, 24 Jan 2013 19:32:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86365</guid><dc:creator>SteveJones</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86365</wfw:commentRss><description>&lt;p&gt;I have a large infopath form that is filled out and submitted. Upon submission the xml is saved into a database ntext field.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Later when the form is opened I want to load the xml from the db (it could have been modified by an external process). Any clues on how to do this?&lt;/p&gt;</description></item></channel></rss>