简体   繁体   English

HTTP MIME类型中+ xml的用途

[英]Purpose of +xml in HTTP MIME type

What's the significance of the +xml in the following HTTP Accept Header: 以下HTTP Accept Header中+xml的含义是什么:

application/vnd.google-earth.kml+xml

Is that just to denote it's an XML based format, or that it's suitable for XML editors, or something completely different? 只是为了表示它是基于XML的格式,还是适合XML编辑器,还是完全不同的东西?

http://www.iana.org/assignments/media-types/application/vnd.google-earth.kml+xml http://www.iana.org/assignments/media-types/application/vnd.google-earth.kml+xml

Check the RFC : 检查RFC

Appendix A. Why Use the '+xml' Suffix for XML-Based MIME Types? 附录A.为什么将'+ xml'后缀用于基于XML的MIME类型?

Although the use of a suffix was not considered as part of the original MIME architecture, this choice is considered to provide the most functionality with the least potential for interoperability problems or lack of future extensibility. 尽管没有将后缀的使用视为原始MIME体系结构的一部分,但该选择被认为可以提供最多的功能,而出现互操作性问题或缺乏未来可扩展性的可能性最小。 The alternatives to the '+xml' suffix and the reason for its selection are described below. 下面描述了'+ xml'后缀的替代方法及其选择的原因。

There is a whole list of reasons listed underneath, but I don't think copying them verbatim falls under fair-use. 下面列出了完整的原因列表,但是我认为逐字复制它们不属于合理使用范围。 So check the RFC for their full (long!) story of how this came to be. 因此,请检查RFC以了解其完整(冗长!)故事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM