The four characters that learned to read XML without reading the room
In January 2001, three men published a document that solved a deceptively small problem: how to tell a machine that a file is XML without also telling it what the file means. Their answer was four characters long — +xml — and it has been quietly holding the line between syntax and semantics ever since.
The men were Makoto Murata, Simon St. Laurent and Dan Kohn. Their document was RFC 3023, “XML Media Types.” It arrived as XML was escaping the lab and colonizing everything: commerce messages, vector graphics, configuration files, syndication feeds. All of them used angle brackets. None of them meant the same thing.
Label every one application/xml and you preserve the grammar while erasing the contract. Give each a wholly opaque name and you preserve the contract while hiding the useful fact that generic XML machinery can still inspect it. RFC 3023 found the joint between those two needs.
One label, two levels of knowledge
The trick was modest and precise. A specific media subtype could keep its identity and end in +xml. The characters before the suffix named the format. The final four exposed the substrate. So application/foo+xml was one registered media type, not a stack of automatic permissions.
A receiver that understood foo could apply foo-specific display, editing, validation or runtime behavior. A receiver that did not understand foo but did understand XML could spot the suffix and decide whether generic processing — parsing, formatting, searching, transforming — was appropriate. That second path was the innovation. Instead of maintaining an ever-growing list of XML vocabularies, a receiver could test the last four characters.
The RFC also rejected the alternatives that fitted poorly with deployed MIME dispatch. A parameter was not invariant enough to express the representation’s nature, and many dispatchers did not route on parameters. A new top-level media type would disturb the existing architecture. The suffix carried the smallest shared fact.
The suffix was a receipt, not a permission slip
But the full media type remained decisive. The RFC’s appendix was explicit: XML-unaware processors would treat +xml as opaque, and no additional semantics could be assigned merely because it appeared. application/foo and application/foo+xml were independent types. The XML version might have different syntax and new semantics; support for one did not promise support for the other.
Suppose a gateway receives a type ending in +xml. Suffix recognition supports one bounded inference: the sender has labeled the representation as XML-based. Invoking an XML processor can test the next fact: whether the received bytes form XML under the applicable encoding rules. Neither observation establishes that the vocabulary is understood.
An element named transfer, delete or permit has no operational force just because a parser constructs a tree. Namespace rules, schema or application code may reject it. A signature may be syntactically present but unverified. A valid signer may lack authority for the requested operation. A permitted operation may fail before its effect is committed.
This layered reading also prevents a security mistake. Generic parsing is not a blanket instruction to resolve external entities, fetch network resources, run stylesheets or allocate without limits. Those are local capabilities with local risk. The suffix opens a possible syntax path; it does not select a trust policy.
Later standards drew the line in ink
RFC 6838 placed structured syntax suffixes into the media-type registration architecture. Characters after the final plus became a registered syntax suffix rather than an isolated XML convention. RFC 6839 formally registered +xml and explained the two simultaneous processing levels: exact-type semantics for specific handling, generic representation processing when special semantics are unnecessary and no extra knowledge is needed to parse the underlying form.
RFC 7303 later replaced RFC 3023 while preserving the principle. New XML-based media types should normally use +xml unless generic XML processing is inappropriate. A receiver may detect the suffix, invoke an XML processor to verify the claim, and proceed accordingly. Specific media types can still impose their own display, editing, security, runtime and fragment rules.
The current IANA registries make the design visible. +xml has its own structured-suffix entry, while the media-type registry contains many separate subtypes ending in it. The common ending records a shared representation family. The distinct names record that the documents are not interchangeable.
Why a 2001 footnote still holds the line
RFC 3023’s durable lesson is institutional as much as technical. Shared infrastructure should expose the minimum fact that must be common. +xml made a grammar family visible. It left meaning and power where they belonged: in the exact contract, the running implementation and the decision that could be audited.
The incentive to collapse those layers is convenience. A generic platform can advertise support for thousands of formats by matching +xml; a security gateway can call a document “understood” after parsing; an audit trail can retain only the final action. Each shortcut turns a useful syntax hint into authority it never carried.
Sources
- RFC Editor record for RFC 3023
- RFC 3023 in HTML
- RFC 3023 in text
- RFC Editor record for RFC 2048
- RFC 2048 in HTML
- RFC Editor record for RFC 6838
- RFC 6838 in HTML
- RFC Editor record for RFC 6839
- RFC 6839 in HTML
- RFC Editor record for RFC 7303
- RFC 7303 in HTML
- IANA Structured Syntax Suffixes
- IANA Media Types
- W3C XML specification
- Lu Heng on Running-Code Primacy
- Lu Heng on Minimum Initial Specification
- Lu Heng on Reality Layers
Lu Heng did not author or endorse RFC 3023. His essays are used here as disclosed analytical lenses.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






