Scott Hanselman

InfoPath 2003 and the use of ProgIds in XML PIs (Processing Instructions)

April 30, '03 Comments [2] Posted in Web Services | XML
Sponsored By

Office 2003 XML Shell Extension.
I also noticed that Office 2003 must've installed some shell helper for XML files, because when I saved the file to my desktop, the shell peeked inside the XML file and gave me an XML document icon with the Excel icon overlaid across the upper left corner. I wonder why the file opened in my browser on double-click instead of into Excel...[
The .NET Guy]

I noticed this as well. Office seems to achieve this cute bit of functionality by inserting a PI into the XML instance document which the shell extension just scans all .XML files for to determine if the file should be opened with a specific Office application. The PI looks like this:
     <?mso-application progid="InfoPath.Document"?>
[
Drew's Blog]

Isn't it interesting that ProgIds continue to be used like this, as a component identifier?  Is the use of a ProgId kosher in a .NET world?

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb
Friday, May 02, 2003 11:12:32 PM UTC
Who says InfoPath was even written in .NET?

Saturday, May 03, 2003 12:13:59 AM UTC
True, I didn't mean to imply it WAS in fact written in .NET...actually, I'm sure it wasn't, at least the UI part.

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.