Dot-Dot Convention

From MicroXML Community Group
Jump to: navigation, search

A simple convention, known as the dot-dot convention, for converting XML documents that make use of namespaces into MicroXML is to simply translate the colon (:) in names into two consecutive periods (..). While in principle such names may already be in use in the document, it seems to be pretty unlikely. Here's a simple XML example:

 <person:person xml:lang="en">
   <person:name>John Cowan</person:name>

This can be trivially transformed to the following well-formed MicroXML:

 <person..person xml..lang="en">
   <>John Cowan</>

The mnemonic value of the dot-dot convention is that .. looks like : rotated 90 degrees.