Category: Application

application/xml

application/xml is used for XML documents, SOAP APIs, RSS/Atom feeds, and XML sitemaps.

MIME / CONTENT-TYPE

application/xml

ASSOCIATED EXTENSIONS

.xml

PRIMARY CATEGORY

Application

HTTP Headers & Web Server Configurations

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

Send this exact header in HTTP responses to instruct browsers how to decode and render the payload.

Node.js / Express / Web API
res.setHeader("Content-Type", "application/xml; charset=utf-8"); res.send("<response><status>ok</status></response>");
NGINX Configuration (mime.types)
types { application/xml xml; }
Apache (.htaccess / httpd.conf)
AddType application/xml .xml

Security Advisory & Hardening

CRITICAL: Disable external entity resolution (XXE protection) in your XML parser to prevent arbitrary local file disclosure and SSRF attacks.

Frequently Asked Questions

application/xml Questions & Answers

Common questions regarding MIME types, Content-Type headers, and web server configurations.

The standard HTTP response header is: "Content-Type: application/xml; charset=utf-8".