XML format
RDF/XML
A graph serialisation in XML. Also the actual format behind documents labelled RSS 1.0.
RDF/XML encodes a graph of subject-predicate-object statements, so its documents read very differently from tree-shaped XML: identity lives in rdf:about attributes and nesting expresses relationships rather than containment.
Its practical relevance to feed work is RSS 1.0, whose root is <rdf:RDF>. Any tool that detects feeds by looking for an <rss> or <feed> root will misclassify those documents entirely.
Constraints that bite
- The same graph has many valid XML serialisations — text diffing RDF/XML is close to meaningless.
- RSS 1.0 has an <rdf:RDF> root, so root-element feed detection fails on it.
- rdf:about and rdf:resource carry identity; ignoring attributes loses the whole model.
- Namespace prefixes are load-bearing for readability but never for meaning.
- Root element
<RDF>- Media type
application/rdf+xml- Extensions
.rdf, .xml- Namespaces
http://www.w3.org/1999/02/22-rdf-syntax-ns#
- XMLDir label
xml
Specification: RDF 1.1 XML syntax
A minimal valid document
Every example on this site is checked against the same parser the workspace uses, so what you see below is known to be well-formed.
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description rdf:about="https://example.com/first">
<dc:title>First post</dc:title>
</rdf:Description>
</rdf:RDF>Namespaces you will meet
Get started
Bring order to the XML your team can't afford to ignore.
Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.