document-attributes

The document-attributes attribute group is used to specify the attributes for an entire MusicXML document. Currently this is used for the version attribute.

The version attribute was added in Version 1.1 for the score-partwise and score-timewise documents. It provides an easier way to get version information than through the MusicXML public ID. The default value is 1.0 to make it possible for programs that handle later versions to distinguish earlier version files reliably. Programs that write MusicXML 1.1 or 2.0 files should set this attribute.

Attribute Group Information

Attributes

QName Type Fixed Default Use Inheritable Annotation
version xs:token 1.0 optional

Used By

Source

<xs:attributeGroup name="document-attributes">
  <xs:annotation>
    <xs:documentation>The document-attributes attribute group is used to specify the attributes for an entire MusicXML document. Currently this is used for the version attribute. The version attribute was added in Version 1.1 for the score-partwise and score-timewise documents. It provides an easier way to get version information than through the MusicXML public ID. The default value is 1.0 to make it possible for programs that handle later versions to distinguish earlier version files reliably. Programs that write MusicXML 1.1 or 2.0 files should set this attribute.</xs:documentation>
  </xs:annotation>
  <xs:attribute name="version" type="xs:token" default="1.0"/>
</xs:attributeGroup>