MusicXML export error

• Jan 6, 2016 - 14:47
Type
Functional
Severity
S4 - Minor
Status
closed
Project

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

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.