Easy Question

E

Eric Stott

I have an form that represents an xml document.

I have created a form that edits certain fields in the file.
How do I open up the form and then the corresponding xml document w/o doing
the Merge document, if there are no processing instructions ever in the xml
document?

Thanks,
Eric
 
G

Greg Collins [InfoPath MVP]

Create a blank form with your new template, and save it. Then open that saved .xml file in Notepad, copy all of the processing-instructions and paste them into your existing .xml file that you want to open in InfoPath.

Now you can just double-click the udated existing .xml file and it will open in InfoPath.
 
E

Eric Stott

The xml document I will be recieving will never have the processing
instructions in it. Once I have made the changes in Infopath, I want to save
the xml document w/o those processing instructions also.
Is there a way to do that?
Thanks,
Eric
"Greg Collins [InfoPath MVP]" <gcollins_AT_msn_DOT_com> wrote in message
Create a blank form with your new template, and save it. Then open that
saved .xml file in Notepad, copy all of the processing-instructions and
paste them into your existing .xml file that you want to open in InfoPath.

Now you can just double-click the udated existing .xml file and it will open
in InfoPath.
 
G

Greg Collins [InfoPath MVP]

Hi Eric,

If you manually added the PIs, it is likely best to just manually remove them when you are done.

I believe there is a way in code to strip out the PIs when you save, but it might cause issues if you don't also close the form at the same time. You'll have to dig a little into this and experiment to see if you can do it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top