Cannot Open XML Files in Internet Explorer

Problem

Before installing Oxygen XML Developer I had no problems opening XML files in Internet Explorer. Now when I try to open an XML file in Internet Explorer it opens the file in Oxygen XML Developer. How can I load XML files in Internet Explorer again?

Solution

XML files are opened in Oxygen XML Developer because Internet Explorer uses the Windows system file associations for opening files and you associated XML files with Oxygen XML Developer in the installer panel called File Associations. Therefore, Internet Explorer opens XML files with the associated Windows application.

By default, the association with XML files is disabled in the Oxygen XML Developer installer panel called File Associations. When you enabled it, the installer displayed a warning message about the effect that you experience right now.

For opening XML files in Internet Explorer, you have to set Internet Explorer as the default system application for XML files. For example, you can do so by following this procedure:
  1. Right-click the XML file in Windows Explorer and select Open With > Choose Default Program.
  2. Expand the section with the down-arrow and select IE in the list of applications.
  3. Select the Always use the selected program option.

If XML files are still not opened in Internet Explorer, create a file named revert.vbs with the following content:

  function revert()
    Set objShell = CreateObject("WScript.Shell")
    objShell.RegWrite "HKCR\.xml\", "xmlfile", "REG_SZ"
    objShell.RegWrite "HKCR\.xml\Content Type", "text/xml", "REG_SZ"
  end function
                        
  revert()

Then run the following command from a command line:

wscript revert.vbs