I don't want Firefox to display XML files internally, I want it to open Notepad++ instead.

I have had a look a the Tools\Options\Applications menu but there is no 'XML' content type.

I am using FF 3.6.2

Obviously this only applies to XML files that I click on in the browser, XML files opened from the file system do open in Notepad++.


Holy cow! This issue drove me CRAZY all evening. I finally figured it out. I realize the original question was long ago, but I want this answer on the internet, so here goes:

Instead of adding an entry for XML, I had to update the extensions list for text/plain. Here is what the text/plain entry now looks like in my mimeTypes.rdf file. The file is located in the firefox profile folder, see firefox troubleshooting page (type about:support into the navigation bar) and under "Profile Folder" click on "Show Folder" then edit the mimeTypes.rdf file with notepad++.

  <RDF:Description RDF:about="urn:mimetype:text/plain"
                   NC:description="Text Document"
    <NC:handlerProp RDF:resource="urn:mimetype:handler:text/plain"/>

  <RDF:Description RDF:about="urn:mimetype:handler:text/plain"
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:text/plain"/>

  <RDF:Description RDF:about="urn:mimetype:externalApplication:text/plain"
                   NC:path="C:\Program Files\Notepad++\notepad++.exe"
                   NC:prettyName="notepad++.exe" />

You must configure XML file types download action to achieve what you want.

More info here:

  • Thanks for the link. I have now added text/xml and application/xml mime types to the mimeTypes.rdf file in my profile. The xml type now shows up in the Tools\Options\Applications and I've set the handler to Notepad++ but when I click on an XML link it still opens in the default xml viewer. Is the default viewer overriding this setting or am I missing something? Thanks
    – ChrisB
    May 11 '11 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.