Manual:$wgXMLMimeTypes

From Linux Web Expert

<translate> MIME types</translate>: $wgXMLMimeTypes
An array of XML MIME types we can detect via MimeMagic
<translate> Introduced in version:</translate>1.13.0 (r36960)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>(see below)

Details

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

MediaWiki version:
<translate> ≥</translate> 1.13
$wgXMLMimeTypes = [
	'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
	'svg' => 'image/svg+xml',
	'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
	'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
	'html' => 'text/html', // application/xhtml+xml?
];

See also