- Code: Select all
<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
This is pretty easy to follow. In the musicxml.xsd document though, unless I'm missing something, the only xs:element objects defined are score-partwise and score-timewise.
There are many complexTypes in the specification, here's an example:
- Code: Select all
<xs:complexType name="system-margins">
<xs:annotation>
<xs:documentation>[...]</xs:documentation>
</xs:annotation>
<xs:group ref="left-right-margins"/>
</xs:complexType>
Is "system-margins" an element? If so, why is it not declared <xs:element name="system-margins">?
I'm having trouble understanding exactly what is an element in the specification since nothing is declared as an xs:element.
Help!
p.s. Currently I am only reading from musicxml.xsd and I am not referencing "attributes.mod", "barline.mod", etc. Maybe this is my problem? Is it required to read the .mod documents to define the music xml specification?