I have a form that I'm using to generated xml doc for a nowledge base. I programmatically insert a 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. How can I delete those via jscript? The nodes in question are :
<?mso-infoPathSolution solutionVersion="1.0.0.57" productVersion="11.0.8034" PIVersion="1.0.0.0" href="url" name="urn:schemas-microsoft-com:office:infopath:kb:" ?>
<?mso-application progid="InfoPath.Document"?>
How can I remove these instructions via jscript so that I can open them in the browser when they are clicked on? I know I can do it manually but there should be a way to automate that when the forms are saved... Any help would be appreciated.