Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

launching a program with xml-files

Status
Not open for further replies.

nickys

Programmer
Joined
Mar 16, 2004
Messages
2
Location
BE
Hi,

how can i get xml-files to be associated with a program so that clicking on the xml file will result in opening the program?

Thx to any helpers!
 
The xml-file only consists of data, it is no executable.
Clicking it won't do much, unless you specified that all xml-files should be openen with a browser, notepad, etc.

Of course, you can put all kind of data in your xml-file, so could make something like:
<root>
<application>
<name>Word</name>
<dot>normal.dot</dot>
</application>
</root>
You would have to write a program (in VB, C#, whatever) to read this info, and take the actual action of starting the application.
 
If you're using Windows, just double-click any XML file. Windows will pop-up (after some delay) a small dialog asking which of the registered programs you want to use to open the file. Scroll through the list until you find one that suits you, perhaps Internet Explorer. Click on it, and check the box that says "Always use this program." Then click the "Ok" button.

That'll do it. If you're not using Windows, give us the OS information.
 
Hi again,

thanks for replying so fast but thats not what i really need...let me specify a bit: I'm developing a program that handles decision tables, these tables can be stored in xml-files. I'd like to see clicking on these (not all) xml-files will result in opening the program.

<?mso-application progid="Word.document"?>

Kinda like this tag makes the xml-file open in Microsoft Word...isn't there a way to do this for other programs too?

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top