RFC 3023 XML Media Types January 2001 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Notational Conventions . . . . . . . . . . . . . . . . . . . 4 3. XML Media Types . . . . . . . . . . . . . . . . . . . . . . 5 3.1 Text/xml Registration . . . . . . . . . . . . . . . . . . . 7 3.2 Application/xml Registration . . . . . . . . . . . . . . . . 9 3.3 Text/xml-external-parsed-entity Registration . . . . . . . . 11 3.4 Application/xml-external-parsed-entity Registration . . . . 12 3.5 Application/xml-dtd Registration . . . . . . . . . . . . . . 13 3.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4. The Byte Order Mark (BOM) and Conversions to/from the UTF-16 Charset . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5. Fragment Identifiers . . . . . . . . . . . . . . . . . . . . 15 6. The Base URI . . . . . . . . . . . . . . . . . . . . . . . . 15 7. A Naming Convention for XML-Based Media Types . . . . . . . 16 7.1 Referencing . . . . . . . . . . . . . . . . . . . . . . . . 18 8. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 18 8.1 Text/xml with UTF-8 Charset . . . . . . . . . . . . . . . . 19 8.2 Text/xml with UTF-16 Charset . . . . . . . . . . . . . . . . 19 8.3 Text/xml with UTF-16BE Charset . . . . . . . . . . . . . . . 19 8.4 Text/xml with ISO-2022-KR Charset . . . . . . . . . . . . . 20 8.5 Text/xml with Omitted Charset . . . . . . . . . . . . . . . 20 8.6 Application/xml with UTF-16 Charset . . . . . . . . . . . . 20 8.7 Application/xml with UTF-16BE Charset . . . . . . . . . . . 21 8.8 Application/xml with ISO-2022-KR Charset . . . . . . . . . . 21 8.9 Application/xml with Omitted Charset and UTF-16 XML MIME Entity . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 8.10 Application/xml with Omitted Charset and UTF-8 Entity . . . 22 8.11 Application/xml with Omitted Charset and Internal Encoding Declaration . . . . . . . . . . . . . . . . . . . . . . . . 22 8.12 Text/xml-external-parsed-entity with UTF-8 Charset . . . . . 22 8.13 Application/xml-external-parsed-entity with UTF-16 Charset . 23 8.14 Application/xml-external-parsed-entity with UTF-16BE Charset 23 8.15 Application/xml-dtd . . . . . . . . . . . . . . . . . . . . 23 8.16 Application/mathml+xml . . . . . . . . . . . . . . . . . . . 24 8.17 Application/xslt+xml . . . . . . . . . . . . . . . . . . . . 24 8.18 Application/rdf+xml . . . . . . . . . . . . . . . . . . . . 24 8.19 Image/svg+xml . . . . . . . . . . . . . . . . . . . . . . . 24 8.20 INCONSISTENT EXAMPLE: Text/xml with UTF-8 Charset . . . . . 25 9. IANA Considerations . . . . . . . . . . . . . . . . . . . . 25 10. Security Considerations . . . . . . . . . . . . . . . . . . 25 References . . . . . . . . . . . . . . . . . . . . . . . . . 27 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . 31 A. Why Use the '+xml' Suffix for XML-Based MIME Types? . . . . 32 A.1 Why not just use text/xml or application/xml and let the XML processor dispatch to the correct application based on the referenced DTD? . . . . . . . . . . . . . . . . . . . . . . 32 Murata, et al. Standards Track