XML has a variety of media types out there. Some common ones are:
- XHTML (extensible hypertext markup language)
application/xhtml+xml
- SVG (scalable vector graphics)
image/svg+xml
- RSS (really simple syndication)
application/rss+xml
Each MIME type identifies a different language.
RFC 3023 standardizes the convention of using the suffix +xml as rightly pointed out by you.
Paraphrased from the wikipedia article - XML and MIME.
Update: Removed incorrect assumption that JSON is not used as an alternative representation for XML.
There are alternate MIME types with suffix +json
being widely used. And as rightly pointed out these will continue grow considering JSON.
The +json
suffix convention is non-standard, but being used by others.