O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

RDF Root Element

RDF documents are also XML documents, so they start with the <?xml?> declaration. These documents also must have a specific root element, <RDF>, which encloses the rest of the document. Because the namespace that you use with RDF is usually given the prefix rdf, you often specify the <RDF> element as <rdf:RDF> like this:

<?xml version="1.0" ?> 
<rdf:RDF
        .
        .
        .
</rdf:RDF>

Also note that RDF documents must use the RDF namespace.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required