back top forward
  slide 9

Namespaces make XML syntax more opaque

For example, would you guess these were the same document?

<article
  xmlns:mml="http://www.w3.org/1998/Math/MathML"
  xmlns:svg="http://www.w3.org/2000/svg">
  <title>My Summer Equation</title>
  <equation><alternatives>
    <mml:math>1 + 2 = 3</mml:math>
    <svg:svg><!-- SVG image goes here --></svg:svg>
  </alternatives></equation>
... </article>

To a namespace-aware processor, they are identical

<article
  xmlns:mml="http://www.w3.org/1998/Math/MathML"
  xmlns:svg="http://www.w3.org/2000/svg">
  <title>My Summer Equation</title>
  <equation><alternatives>
    <math xmlns="http://www.w3.org/1998/Math/MathML">1 + 2 = 3</math>
    <svg xmlns="http://www.w3.org/2000/svg"><!-- SVG image goes here --></svg>
  </alternatives></equation>
... </article>
logo Mulberry Technologies, Inc. • Taming the Namespace Beast • JATS-Con 2011
back top forward