MusicXML export error
The attached xml file exported from MuseScore 2.0.2 has an error and does not validate against the MusicXML schema. This is a serious problem when using SeeScore as it does not accept files which do not validate.
Attachment | Size |
---|---|
export-problem.mscz | 39.52 KB |
MusicScore-xml-export-bad.xml | 407.07 KB |
Comments
From the related forum-post:
"There is an error at line 949 where there is an empty direction-type element."
Cause: in the first part, in measure 22, immediately before the first staff text "arco", the file contains another (invisible) stafftext (with no text but only an "italic" formatting instruction). This one is incorrectly exported as a direction-type element with no child element. Correct behavior would be not to export it at all.
As far as I know, the current user interface does not easy selection or editing of such invisible elements, which implies that such issues are difficult to correct.
Easiest way to do it - assuming you know where the problem is - is to an another element of the same type to the same measure, then select the measure, right click the element you added, and choose "Select / All Similar Elements".
In general, 2.0.2 makes it pretty ahrd to *create* these empty text elements in the first place. In previous versions it happened quite often. I couldn't figure out a way to reproduce this in a current build, but I could easily imagine there being some particular sequence of actions that might have that effect.
Simplified the problematic file to the minimum that still produces this error, result is attached.
Pull request #2356
Fixed in branch master, commit f210f939c0
fix #93031 - invalid MusicXML for stafftext containing only formatting
Fixed in branch 2.0.3, commit 8c5320ac99
fix #93031 - invalid MusicXML for stafftext containing only formatting
Automatically closed -- issue fixed for 2 weeks with no activity.