A More Complex Schema

<?xml version="1.0"?>
<element name="SONG" xmlns="http://relaxng.org/ns/structure/1.0">
  <element name="TITLE">
    <text/>
  </element>
  <element name="COMPOSER">
    <text/>
  </element>
  <element name="COMPOSER">
    <text/>
  </element>
  <element name="COMPOSER">
    <text/>
  </element>
  <element name="PRODUCER">
    <text/>
  </element>
  <element name="PUBLISHER">
     <text/>
  </element>
  <element name="LENGTH">
    <text/>
  </element>
  <element name="YEAR">
    <text/>
  </element>
  <element name="ARTIST">
    <text/>
  </element>
</element>

element SONG {
  element TITLE     { text },
  element COMPOSER  { text },
  element COMPOSER  { text },
  element COMPOSER  { text },
  element PRODUCER  { text },
  element PUBLISHER { text },
  element LENGTH    { text },
  element YEAR      { text },
  element ARTIST    { text }
}

Previous | Next | Top | Cafe con Leche

Copyright 2005, 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 18, 2005