Cannot Open XML Files in Internet Explorer

Problem

Before installing Oxygen XML Developer plugin 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 plugin. How can I load XML files in Internet Explorer again?

Solution

XML files are opened in Oxygen XML Developer plugin because Internet Explorer uses the Windows system file associations for opening files and you associated XML files with Oxygen XML Developer plugin 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 plugin 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, again you have to set Internet Explorer as the default system application for XML files (for example by right-clicking an XML file in Windows Explorer, selecting Open WithChoose Program, selecting IE in the list of applications and selecting the checkbox Always use the selected program). Also, you have to run the following command from a command line:

wscript revert.vbs

where revert.vbs is a text file 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()

Was this helpful?