MakeMusic
SmartMusic Finale Garritan MusicXML

Order of elements

Moderator: Michael Good

Order of elements

Postby desideroali » Wed May 06, 2015 2:28 pm

Hi,

I am receiving validation errors related to element order while trying to open MusicXML files in MuseScore2B2. For example, the first element set is OK where the second is not. The only difference is the order of Alter and Octave elements.

Is the order of elements critical/strict in the schema?

Code: Select all
<note>
        <pitch>
          <step>B</step>
          <alter>-0.5</alter>
          <octave>4</octave>
        </pitch>
....


Code: Select all
<note>
        <pitch>
          <step>B</step>
          <octave>4</octave>
          <alter>-0.5</alter>
        </pitch>
....


Thanks,
Burak
desideroali
 
Posts: 5
Joined: September, 2014
Reputation: 0

Re: Order of elements

Postby Michael Good » Wed May 06, 2015 5:17 pm

Yes, order matters in XML files. The ordering specified in the DTD and XSD is the order that must be followed to avoid validation errors.

Some elements can be ordered freely but others cannot. The DTD and XSD should be very clear about which is which.
Michael Good
VP of MusicXML Technologies
MakeMusic, Inc.
User avatar
Michael Good
 
Posts: 2197
Joined: March, 2014
Reputation: 0

Who is online

Users browsing this forum: No registered users and 2 guests

cron