Jump to content

XML and MIME

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Sderose (talk | contribs) at 17:49, 22 March 2016 (Note that RFC 3023 doesn't just define the first 2 types listed, but also the extension mechanism.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

  • application/xml (RFC 3023)
  • text/xml (RFC 3023)

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 their own MIME type; this convention is defined in (RFC 3023).

The following are some examples of common XML media types:

  • Registered
    • Extensible HyperText Markup Language (XHTML): application/xhtml+xml (RFC 3236)
    • Atom: application/atom+xml (RFC 4287)
  • Registration-In-Progress
  • Unregistered
    • Mathematical Markup Language (MathML): application/mathml+xml
    • Really Simple Syndication (RSS 2.0): application/rss+xml