Corrections to Chapter 2 of The XML 1.1 Bible, XML Applications

pp. 30-33: In listing 2-7 many of the </octave> end-tags should in fact be <octave> start-tags. The corrected listing is:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC
   "-//Recordare//DTD MusicXML 0.7a Partwise//EN"
  "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise>
  <work><work-title>Flute Swale</work-title></work>
  <identification>
    <creator type="composer">Beth Anderson</creator>
    <rights>© 2003 Beth Anderson</rights>
    <encoding>
      <encoding-date>2003-06-21</encoding-date>
      <encoder>Elliotte Rusty Harold</encoder>
      <software>jEdit</software>
      <encoding-description>
         Listing 2-7 from the XML Bible, 3rd Edition
      </encoding-description>
    </encoding>
  </identification>
  <part-list>
    <score-part id="P1">
      <part-name>flute</part-name>
    </score-part>
  </part-list>
  <part id="P1">
    <measure number="1">
      <attributes>
        <divisions>4</divisions>
        <key><fifths>2</fifths> <mode>major</mode></key>
        <time><beats>4</beats><beat-type>4</beat-type></time>
        <clef><sign>G</sign><line>2</line></clef>
      </attributes>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
       <stem>up</stem>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch>
          <step>C</step><alter>1</alter><octave>5</octave>
        </pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>D</step><octave>5</octave></pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch>
         <step>C</step></alter>1</alter><octave>5</octave>
        </pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>24</duration> <type>quarter</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>24</duration> <type>quarter</type> 
        <stem>up</stem>
      </note>
    </measure>
    <measure number="2">
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch>
          <step>C</step></alter>1</alter><octave>5</octave>
        </pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>D</step><octave>5</octave></pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch>
         <step>C</step></alter>1</alter><octave>5</octave>
        </pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>24</duration> <type>quarter</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>24</duration> <type>quarter</type> 
        <stem>up</stem>
      </note>
    </measure>
    <measure number="3">
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch>
         <step>C</step></alter>1</alter><octave>5</octave>
        </pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>6</duration> <type>sixteenth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>D</step><octave>5</octave></pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch>
          <step>C</step><alter>1</alter><octave>5</octave>
        </pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>down</stem>
      </note>
      <note>
        <pitch><step>B</step><octave>4</octave></pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch>
          <step>F</step><alter>1</alter><octave>4</octave>
        </pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>up</stem>
      </note>
      <note>
        <pitch><step>E</step><octave>4</octave></pitch>
        <duration>12</duration> <type>eighth</type> 
        <stem>up</stem>
      </note>
    </measure>
 </part>
</score-partwise>

[ Cafe con Leche | Order from amazon.com | The XML Bible Home Page | Table of Contents | Sample Chapters | Examples | Errata from other Chapters ]

Copyright 2004 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 1, 2004