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.

Signature
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
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
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.

Signature
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
Greg Collins [InfoPath MVP] - 31 May 2006 20:08 GMT
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.

Signature
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )