diff --git a/src/plugins/texteditor/TextEditor.mimetypes.xml b/src/plugins/texteditor/TextEditor.mimetypes.xml
index 913b9fe0ebaf6e18b99c60e040059a9d607e7635..13050f090ecfb232d13ef653fb56e16fbd20099a 100644
--- a/src/plugins/texteditor/TextEditor.mimetypes.xml
+++ b/src/plugins/texteditor/TextEditor.mimetypes.xml
@@ -5,13 +5,4 @@
         <sub-class-of type="application/octet-stream"/>
         <glob pattern="*.txt"/>
     </mime-type>
-    <mime-type type="application/xml">
-        <sub-class-of type="text/plain"/>
-        <comment>XML document</comment>
-        <glob pattern="*.xml"/>
-        <glob pattern="*.xsl"/>
-        <glob pattern="*.xslt"/>
-        <glob pattern="*.xbl"/>
-        <alias type="text/xml"/>
-    </mime-type>
 </mime-info>
diff --git a/src/plugins/texteditor/plaintexteditorfactory.cpp b/src/plugins/texteditor/plaintexteditorfactory.cpp
index 5dc62f45676ce4cbcfbb4fa572f3081024e6a16d..3a960bc180e2aec21b42bb91dedbb5413644cb58 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.cpp
+++ b/src/plugins/texteditor/plaintexteditorfactory.cpp
@@ -45,8 +45,7 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
     m_actionHandler = new TextEditorActionHandler(
         QLatin1String(TextEditor::Constants::C_TEXTEDITOR),
         TextEditorActionHandler::Format);
-    m_mimeTypes << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT)
-                << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_XML);
+    m_mimeTypes << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT);
 }
 
 PlainTextEditorFactory::~PlainTextEditorFactory()
diff --git a/src/plugins/texteditor/texteditorconstants.h b/src/plugins/texteditor/texteditorconstants.h
index b111121c824ca1a19d5b49d6b52ecdb29481b9cb..4a474b6bdbb7dd34b6edee4adf6cc590cb0bff60 100644
--- a/src/plugins/texteditor/texteditorconstants.h
+++ b/src/plugins/texteditor/texteditorconstants.h
@@ -87,7 +87,6 @@ const char * const GOTO_NEXT_CHARACTER_WITH_SELECTION = "TextEditor.GotoNextChar
 const char * const GOTO_PREVIOUS_WORD_WITH_SELECTION = "TextEditor.GotoPreviousWordWithSelection";
 const char * const GOTO_NEXT_WORD_WITH_SELECTION = "TextEditor.GotoNextWordWithSelection";
 const char * const C_TEXTEDITOR_MIMETYPE_TEXT = "text/plain";
-const char * const C_TEXTEDITOR_MIMETYPE_XML = "application/xml";
 
 
 // Text color and style categories