What is MIME type "application/vnd.ms-visio.stencil.main+xml"?

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

application/vnd.ms-visio.stencil.main+xml denotes an XML-based file used by Microsoft Visio. It carries stencil information that holds pre-designed shapes.

This MIME type tells the system that the file contains structured XML data. It is primarily linked to VSSX files, which are used by Microsoft Visio 2013 for diagramming tasks.

Key facts: For more details on Visio file types and usage, refer to external resources such as File Extension Information.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/vnd.ms-visio.stencil.main+xml    
  

HTML

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


    <a href="file.dat" type="application/vnd.ms-visio.stencil.main+xml">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/vnd.ms-visio.stencil.main+xml');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the application/vnd.ms-visio.stencil.main+xml MIME type?

This MIME type identifies Microsoft Visio Stencil files saved in the Open XML format, specifically using the .vssx extension. It tells the operating system and web servers that the file contains structured XML data representing reusable diagram shapes for Visio 2013 and later.

How do I configure Apache to serve .vssx files?

To ensure browsers handle Visio stencils correctly, add the following line to your .htaccess file or httpd.conf: AddType application/vnd.ms-visio.stencil.main+xml .vssx. Without this, the server might serve the file as generic XML or plain text.

What is the correct Nginx configuration for this MIME type?

In Nginx, you should update your mime.types file or add a types block inside your server configuration. Use the directive: application/vnd.ms-visio.stencil.main+xml vssx;. Remember to reload the Nginx service for the changes to take effect.

Why does my browser download the .vssx file instead of displaying it?

Web browsers (like Chrome or Firefox) do not have built-in engines to render Microsoft Visio diagrams. When a server sends the application/vnd.ms-visio.stencil.main+xml header, the browser recognizes it as an external application file and prompts a download so you can open it in Microsoft Visio.

How does this differ from the older .vss format?

The older .vss files use a proprietary binary format and the MIME type application/vnd.visio. The newer .vssx files associated with application/vnd.ms-visio.stencil.main+xml are based on the Open XML standard, which is essentially a ZIP archive containing XML data, making it more compatible with modern data processing tools.

How do I add this MIME type to IIS?

Open IIS Manager, select your site, and double-click the MIME Types feature. Click 'Add' in the Actions pane, set the file name extension to .vssx, and set the MIME type to application/vnd.ms-visio.stencil.main+xml.

Can I open these files with software other than Microsoft Visio?

While primarily designed for Microsoft Visio 2013+, some third-party diagramming tools like Lucidchart or LibreOffice Draw may offer partial import support for .vssx files. However, for full fidelity of the stencil shapes, the native application is recommended.

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.