Damaged File Associations on OS X

After upgrading OS X and Oxygen XML Developer, it is no longer associated to the appropriate file types (such as XML, XSL, XSD, etc.) How can I create the file associations again?

The upgrade damaged the file associations in the LaunchService Database on your OS X machine. You can rebuild the LaunchService Database with the following procedure. This will reset all file associations and will rescan the entire file system searching for applications that declare file associations and collecting them in a database used by Finder.

  1. Find all the Oxygen XML Developer installations on your hard drive.
  2. Delete them by dragging them to the Trash.
  3. Clear the Trash.
  4. Unpack the Oxygen XML Developer 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 Developer icon.
  9. Double-click the file.
  10. Accept the confirmation.
When you start Oxygen XML Developer the file associations should work correctly.