Share on Facebook Share on Twitter Email
Answers.com

XML and MIME

 
Wikipedia: XML and MIME

Contents

XML

An XML document is a text document that consists of an XML declaration and a root element with well-formed content.


Example XML Document

     <?xml version="1.0"?>
     <root>
           Blah
     </root>

MIME

MIME is an Internet Standard that allows email systems to interpret complex data. Web browsers also use the MIME type to accurately display information or launch a separate application to handle the data.

All MIME types (called Internet media type) consist of two parts, in the form type/subtype.

This information is sent to the browser by a web server. Usually, the server determines the MIME type based on the document's file extension. For example, the server would interpret an extension of .txt (plain text file) to have a MIME type of text/plain.

XML Specific MIME Types

There are two MIME assignments for XML data. These are:

Because of the wide variety of documents that can be expressed using an XML syntax, additional MIME types are needed to differentiate between languages. XML-based formats add a suffix of +xml to the MIME type.


The followings are some examples of common XML media types.

  • Registered
  • Unregistered
    • Mathematical Markup Language (MathML): application/mathml+xml
    • Really Simple Syndication (RSS 2.0): application/rss+xml

External links


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
SyncML (technology)
OPML
XHTML Mobile Profile

What are the advantages of XML? Read answer...
How to get xml from postgresql? Read answer...
Do you need XML? Read answer...

Help us answer these
What is XML and what its features?
What are XML schemas?
What is an XML state?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "XML and MIME" Read more