<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Is there any method for removing processing instructions?</title><link>https://www.infopathdev.com:443/forums/thread/21178.aspx</link><pubDate>Sun, 24 Jun 2007 09:37:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21178</guid><dc:creator>Caeanis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21178</wfw:commentRss><description>&lt;p&gt;I figured out a way to do this, the previous method was specific to jscript.&amp;nbsp; The following is my method for doing so in BLOCKED SCRIPT&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dim objNodeList&lt;br /&gt;Set objNodeList = XDocument.DOM.selectNodes(&amp;quot;/processing-instruction()&amp;quot;)&lt;br /&gt;&amp;nbsp;objNodeList.removeAll&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Is there any method for removing processing instructions?</title><link>https://www.infopathdev.com:443/forums/thread/21169.aspx</link><pubDate>Fri, 22 Jun 2007 23:52:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21169</guid><dc:creator>Caeanis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21169</wfw:commentRss><description>&lt;p&gt;Ok, I think I found out how to reference the nodes using:&lt;/p&gt;&lt;p&gt;var objNode=XDocument.DOM.selectSingleNode(&amp;quot;/processing-instruction(&amp;#39;mso-infoPathSolution&amp;#39;)&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;based on the post &amp;quot;&lt;span id="ctl00_ctl01_bcr_ctl00___ForumName"&gt;Accessing Processing Instructions via XPath&amp;quot; by Matt Faus, (thanks Matt!).&amp;nbsp; Now how do I delete this node?&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Is there any method for removing processing instructions?</title><link>https://www.infopathdev.com:443/forums/thread/21167.aspx</link><pubDate>Fri, 22 Jun 2007 23:14:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21167</guid><dc:creator>Caeanis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21167</wfw:commentRss><description>&lt;p&gt;I have a form that I&amp;#39;m using to generated xml doc for a nowledge base. I programmatically insert a&amp;nbsp;stylesheet processing-instruction to reference a style sheet to make the docs readable in the browser, but the 2 processing instructions inserted by Infopath pointing to it as the application is causing me no small amount of grief.&amp;nbsp; How can I delete those via jscript?&amp;nbsp;&amp;nbsp; The nodes in question are :&lt;/p&gt;&lt;p&gt;&amp;lt;?mso-infoPathSolution solutionVersion=&amp;quot;1.0.0.57&amp;quot; productVersion=&amp;quot;11.0.8034&amp;quot; PIVersion=&amp;quot;1.0.0.0&amp;quot; href=&amp;quot;&lt;a&gt;url&lt;/a&gt;&amp;quot; name=&amp;quot;urn:schemas-microsoft-com:office:infopath:kb:&amp;quot; ?&amp;gt;&lt;br /&gt;&amp;lt;?mso-application progid=&amp;quot;InfoPath.Document&amp;quot;?&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;How can I remove these instructions via jscript so that I can open them in the browser when they are clicked on?&amp;nbsp; I know I can do it manually but there should be a way to automate that when the forms are saved...&amp;nbsp; Any help would be appreciated.&lt;/p&gt;</description></item></channel></rss>