What is MIME type "application/xml-external-parsed-entity"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

application/xml-external-parsed-entity is a MIME type used for external pieces of XML content that are not full XML documents.
It marks a file as an external parsed entity that can contain definitions or instructions integrated into another XML file.
This helps XML parsers know the file is meant for inclusion rather than standalone display.
Files using this MIME type are often stored as ENT (SGML/XML entity files).
For further technical details, check out the IANA media types registry.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/xml-external-parsed-entity    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/xml-external-parsed-entity">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/xml-external-parsed-entity');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the specific purpose of application/xml-external-parsed-entity?

This MIME type identifies a file as an external parsed entity, which is a fragment of XML meant to be included in another document rather than standing alone. It tells the parser that the content may not have a single root element and is intended for modular integration into a parent XML file.

How does this type differ from standard application/xml?

While application/xml represents a complete, well-formed XML document with a root element, application/xml-external-parsed-entity represents a component or snippet. Parsers handle these fragments differently, knowing they are context-dependent parts of a larger structure.

How do I configure Apache to serve .ent files correctly?

To ensure your Apache server sends the correct header for entity files, add the following directive to your .htaccess or httpd.conf file: AddType application/xml-external-parsed-entity .ent. This overrides the default text or generic binary types.

Will web browsers render application/xml-external-parsed-entity files?

Generally, no. Because these files often lack a root element or standard document structure, browsers usually treat them as downloadable files or display the raw text source. They are not designed for direct user visualization.

What are the security risks associated with XML external entities?

Processing external entities can lead to XML External Entity (XXE) attacks, where an attacker forces the parser to access sensitive system files or internal network resources. Always ensure your XML parser is configured to validate inputs strictly or disable external entity resolution if not needed.

What file extension is commonly associated with this MIME type?

The standard extension is .ent. These files are often used in DTD (Document Type Definition) modularization. You can find more details about this format on our ent page.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.