ApplicationText-based

application/xml

XML

Reference for application/xml, the MIME type for XML documents used in SOAP services, configuration, and structured document markup.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .xml

HTTP Content-Type Header

HTTP Header
Content-Type: application/xml; charset=utf-8

Associated File Extensions

.xml

Quick Facts

MIME Typeapplication/xml
CategoryApplication
TypeText-based (human-readable)
Extensions.xml

Common Usage

XML is used for SOAP web services, RSS/Atom feeds, SVG images, Maven/Gradle build files, Android layouts, Microsoft Office formats (internally), and many enterprise integration protocols like XMPP and SAML.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.xml" type="application/xml">

<!-- Or for script/media elements -->
<script type="application/xml" src="file.xml"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/xml');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/xml' });
nginx
# nginx.conf — add to types block or use default
types {
    application/xml  xml;
}

# Or set for a specific location
location /api/ {
    default_type application/xml;
}

Related MIME Types

More Application MIME Types

Other application types in the Application family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.