application/xml
XML application data
Application
.xml
MIME Type
Media Type
application/xml
File Extension
.xml
Usage Examples
HTTP Response Header
Content-Type: application/xml
HTML Link Tag
<link rel="stylesheet" type="application/xml" href="style.css">
JavaScript Fetch API
fetch('/api/data', {
headers: {
'Content-Type': 'application/xml'
}
})Express.js (Node.js)
res.setHeader('Content-Type', 'application/xml');
res.send(data);When to Use This MIME Type
Application MIME types are used for structured data and binary files. The Content-Type header helps browsers and APIs process the data correctly.