Edit online

Damaged File Associations on macOS

Problem

After upgrading macOS and Oxygen XML Editor, it is no longer associated to the appropriate file types (such as XML, XSL, XSD). How can I re-create the file associations?

Cause

The upgrade damaged the file associations in the LaunchService Database on your macOS machine.

Solution

You can rebuild the LaunchService Database with the following procedure. This will reset all file associations and rescan the entire file system searching for applications that declare file associations and collect them in a database used by Finder.
  1. Find all the Oxygen XML Editor installations on your hard drive.
  2. Delete them by dragging them to the Trash.
  3. Clear the Trash.
  4. Unpack the Oxygen XML Editor installation kit on your desktop.
  5. Copy the contents of the archive into the folder /Applications/Oxygen.
  6. Run the following command in a Terminal:

    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user

  7. Restart Finder with the following command:

    killall Finder

  8. Create an XML or XSD file on your desktop. It should have the Oxygen XML Editor icon.
  9. Double-click the file.
  10. Accept the confirmation.

Result: When you start Oxygen XML Editor, the file associations should work correctly.