the iCite net > news / blog > a permalink

news and thoughts on and around the development of the iCite net
by Jay Fienberg

An XML namespace illustration

posted: Aug 13, 2003 2:14:26 PM

Following on Ben Hammersley's examples, I created an XML namespace illustration, which follows.

The first block has no namespaces. The second block uses namespaces to clarify that the elements are a catalog item on a book about Duke Ellington. The third block uses namespaces to clarify that the same elements are in fact an item for a meeting with British royalty.

<item>
  <title>The Duke of Cats</title>
  <subjects>
    <term>Duke</term>
    <term>cats</term>
  </subjects>
</item>

***

<catalog:item>
  <book:title>The Duke of Cats</book:title>
  <book:subjects>
    <jazz:term>Duke</jazz:term>
    <jazz:term>cats</jazz:term>
  </book:subjects>
</catalog:item>

***

<meeting:item>
  <royal:title>The Duke of Cats</royal:title>
  <royal:subjects>
    <British:term>Duke</British:term>
    <animal:term>cats</animal:term>
  </royal:subjects>
</meeting:item>

I created this illustration for myself as a way to think about the relationships between XML document schemas and namespaces that might be described by their own schemas. But, I also thought that this illustration might be useful in general as one way to demonstrate what namespaces can do to "meaning" in XML documents.

(I didn't feel up to doing it myself, but I would be interested in seeing these examples expressed in RDF/XML.)

In the iCite net, the relationship between elements and schemas and namespaces is all basically within the concept of schemas. With XML, schemas and namespaces are optional, and, I think, this reflects the XML design orientation towards data fragments—for example, as appropriate for applications like data interchange.

Anyway, this is namespace stuff I have been thinking about.

permalink | comments {0} · trackbacks {0}

also available as: rss · rss2 · rdf · atom

Comments and Tracbacks

Note: All comments and trackbacks are moderated. Spam is deleted. Other comments are approved as promptly as possible.

Note: Older posts no longer accept new comments or trackbacks.

« prev post
Good summary perspectives on namespaces in XML

» next post
My new job title: Knowledge Consultant

blog newsfeeds

brief content:

 XML  ·  RSS  ·  RDF  ·  Atom 


full content:

 XML  ·  RSS  ·  RDF  ·  Atom 


blog archive

2006:
jan · feb · mar · apr
may · jun · jul · aug 
sep · oct · nov · dec
		
2005:
jan · feb · mar · apr
may · jun · jul · aug
sep · oct · nov · dec

2004:
jan · feb · mar · apr
may · jun · jul · aug
sep · oct · nov · dec

2003:
may · jun · jul · aug
sep · oct · nov · dec

first post: 
April 30, 2003

highlight views:
Spammers' Choice
		

Jay elsewhere online
Jay Fienberg - the official home page

Wrong Notes - the music blog of the Ear Reverends

Fine & Full, aka, a fine and full burger

Sociomobilepoetextologia (moblog, currently inactive due to lack of proper mobile)

to enjoy roll
sites I like to read when I start from here

· Anastasia Fuller
· Andy Baio
· Biz Stone
· Boris Mann
· Bre Pettis
· Chris Dent
· Danny Ayers
· Dare Obasanjo
· David Czarnecki
· David Weinberger
· Don Park
· Evan Williams
· Greg Narain
· Jason Kottke
· Jim Benson
· Lucas Gonze
· Marc Canter
· Matt May
· Matt Mullenweg
· Michal Migurski
· Nancy White
· Rebecca Blood
· Reg Cheramy
· Richard MacManus
· Sam Ruby
· Shelley Powers
· Tim Bray
· danah boyd


powered by blojsom


Entries by blojsim