<?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: OpenFormWithData losing IP reference</title><link>https://www.infopathdev.com:443/forums/thread/9221.aspx</link><pubDate>Fri, 03 Mar 2006 09:36:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9221</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9221.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9221</wfw:commentRss><description>Verify the XML that you are opening contains "&amp;lt;?mso application=”Infopath.Document”&amp;gt;". If does not you can insert it.&lt;br /&gt;&lt;br /&gt;If you have it in the XML and stil think that InfoPath is removing it, you can add the PI in the code. Here is the code to do it,&lt;br /&gt;string sAttachmentPI = "mso application='Infopath.Document'";&lt;br /&gt;string sDomXML = thisXDocument.DOM.xml;&lt;br /&gt;if(-1 &amp;lt; sDomXML.IndexOf(sAttachmentPI))&lt;br /&gt;{&lt;br /&gt;   return;&lt;br /&gt;}&lt;br /&gt;IXMLDOMDocument2 oTempDom = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;IXMLDOMProcessingInstruction oAttacmentPINode = oTempDom.createProcessingInstruction(sAttachmentPI, "");&lt;br /&gt;IXMLDOMNode oRootNode = getNode("/rootNodeT");&lt;br /&gt;oRootNode.parentNode.insertBefore(oAttacmentPINode, oRootNode);</description></item><item><title>OpenFormWithData losing IP reference</title><link>https://www.infopathdev.com:443/forums/thread/5416.aspx</link><pubDate>Fri, 03 Mar 2006 00:28:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5416</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5416</wfw:commentRss><description>Ok here's my problem. I used OpenFormWithData() method to launch a form with pre-populated infopath xml via an html page. I had the xml in the correct schema and InfoPath launched successfully with the data that I expected.&lt;br /&gt;&lt;br /&gt;Trouble is when I save the form or submit the form, the resultant xml is not recognised by InfoPath anymore. Opening up the xml file tells me that the &amp;lt;?mso application=”Infopath.Document”&amp;gt; tag is gone mysteriously. Did this happen to anyone? If so, is there a simple fix to it?&lt;br /&gt;&lt;br /&gt;I am working around this problem right now by hacking up the xml file and appending the &amp;lt;?mso application=”Infopath.Document”&amp;gt; tag in there before submitting. Does someone have a simpler and cleaner solution?</description></item></channel></rss>