Based on the definition of MusicML we wrote a MusicML browser in Java to be able to display our efforts. A DTD is a description of the document elements attributes and so on. For a complete description take a look at the XML specification issued by the World Wide Web Consortium at 10th February 1998. A complete listing of the MusicML DTD can be found here . In this example our piece of art has two lines.
Every row has a double staff.
We divided a musicrow into logical pieces called a segment. A segment can contain several notes, chords grouped together between to vertical bars. Within a segment there are subsegments for every staff. At the beginning of every musicrow there are several special elements like the Cleff which are defined for the entire musicrow. If you look more carefully at our DTD you'll notice one of the drawbacks of an XML DTD definition.