{"action":"created","issue":{"url":"https://api.github.com/repos/lasconic/nwc2musicxml/issues/15","repository_url":"https://api.github.com/repos/lasconic/nwc2musicxml","labels_url":"https://api.github.com/repos/lasconic/nwc2musicxml/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/lasconic/nwc2musicxml/issues/15/comments","events_url":"https://api.github.com/repos/lasconic/nwc2musicxml/issues/15/events","html_url":"https://github.com/lasconic/nwc2musicxml/issues/15","id":152964514,"number":15,"title":"Add support for Voltas","user":{"login":"lasconic","id":234271,"avatar_url":"https://avatars.githubusercontent.com/u/234271?v=3","gravatar_id":"","url":"https://api.github.com/users/lasconic","html_url":"https://github.com/lasconic","followers_url":"https://api.github.com/users/lasconic/followers","following_url":"https://api.github.com/users/lasconic/following{/other_user}","gists_url":"https://api.github.com/users/lasconic/gists{/gist_id}","starred_url":"https://api.github.com/users/lasconic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasconic/subscriptions","organizations_url":"https://api.github.com/users/lasconic/orgs","repos_url":"https://api.github.com/users/lasconic/repos","events_url":"https://api.github.com/users/lasconic/events{/privacy}","received_events_url":"https://api.github.com/users/lasconic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-05-04T09:06:28Z","updated_at":"2016-05-11T21:35:37Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/lasconic/nwc2musicxml/issues/comments/218597539","html_url":"https://github.com/lasconic/nwc2musicxml/issues/15#issuecomment-218597539","issue_url":"https://api.github.com/repos/lasconic/nwc2musicxml/issues/15","id":218597539,"user":{"login":"hedgert","id":19214162,"avatar_url":"https://avatars.githubusercontent.com/u/19214162?v=3","gravatar_id":"","url":"https://api.github.com/users/hedgert","html_url":"https://github.com/hedgert","followers_url":"https://api.github.com/users/hedgert/followers","following_url":"https://api.github.com/users/hedgert/following{/other_user}","gists_url":"https://api.github.com/users/hedgert/gists{/gist_id}","starred_url":"https://api.github.com/users/hedgert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedgert/subscriptions","organizations_url":"https://api.github.com/users/hedgert/orgs","repos_url":"https://api.github.com/users/hedgert/repos","events_url":"https://api.github.com/users/hedgert/events{/privacy}","received_events_url":"https://api.github.com/users/hedgert/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T21:35:37Z","updated_at":"2016-05-11T21:35:37Z","body":"\r\n\r\nMuseScore is more picky than Sibelius - but in this instance is it right to be?\r\nIn testing my Votlas I find all is well the MusicXML is as I expected and Sibelius reads/displays and plays back correctly - but MuseScore rejects the XML as invalid - this is the issue:\r\nSupport for closing a volta consists of adding a <bar-style> stag to <barline>  And where <barline> is already defined (as at the end of the bar), then I add it to the existing <barline> that NWC2MusicXML was already creating - my addition goes in before what is already there:\r\n![screen shot 2016-05-11 at 22 21 31](https://cloud.githubusercontent.com/assets/19214162/15197051/4a7e0868-17c7-11e6-89cb-75fef26f22a7.png)\r\nSibelius handles it, MuseScore rejects it saying:\r\n![screen shot 2016-05-11 at 22 25 01](https://cloud.githubusercontent.com/assets/19214162/15197068/5bb6a2c0-17c7-11e6-979e-6cb9d15aa530.png)\r\nIf I swap the order of the <ending and <bar-style tags round, then MuseScore loads and displays correctly.  (Interestingly it looks like MuseScore doesn't handle the variety of possible voltas - a conventional 1-ending, then 2-ending is OK, but my test of 1,2-ending and 3-ending isn't handled properly (1st ending is played then on the 2nd ending it plays through the 1,2 time bar and then straight through the repeat barline and through the 3rd ending) - I appreciate these are MuseScore comments and I'll raise them elsewhere once I've dealt with this.\r\nSo MuseScore loads and displays this version correctly:\r\n![screen shot 2016-05-11 at 22 21 12](https://cloud.githubusercontent.com/assets/19214162/15197280/66970062-17c8-11e6-9064-d6398cfcd831.png)\r\n\r\nBut surely the order of <bar-style and <ending within <barline doesn't matter from a pure XML perspective?\r\nSo my question is, is it valid MusicXML either way round, (in which case MuseScore is overly picky) or is it correct that the order has to be <bar-style first and then <ending"}}