Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎中文
MIME types: $wgXMLMimeTypes
An array of XML MIME types we can detect via MimeMagic
Introduced in version: 1.13.0 (r36960)
Removed in version: still in use
Allowed values: (array)
Default value: (see below)
Other settings: Alphabetical | By function


This setting allows users to specify what XML-based formats they wish to detect via MimeMagic. It maps the root element used by the XML-based format to the MIME type used for that format.

In this associative array, the key is the root element of the XML document (or xmlns-URI:root-element), and the value is the associated MIME type.

Default value:

$wgXMLMimeTypes = array(
	'' => 'image/svg+xml',
	'svg' => 'image/svg+xml',
	'' => 'application/x-dia-diagram',
	'' => 'text/html',
	'html' => 'text/html',

See also[edit]