[XML and CAPX Import] An & in the partname or in a staff text of MusicXML or CAPX file results in unloadable MuseScore file

• Apr 26, 2015 - 21:09
Type
Functional
Severity
S3 - Major
Status
closed
Project

Came up in https://musescore.org/de/node/57826

Import the attached XML, save as mscz, close, open the mscz: it fails with an error claiming this not to be a valid file.
In the debug output if can be seen that it complains about lines were an & is in the part name.

importing the XML and fixing the partnames to not have an &, then save as mscz and all is OK

Problem exists in 2.0 and in the recent build from master, so both the old DOM as well as the new pull parser are affected.
Not 100% sure yet, but CAP/CAPX import might be affected too.

Attachment Size
When I´m sixty-four (ST).xml 113.16 KB

Comments

Hmm..., probably not really critical, but I think at least major, depending how much work after the import went into the file, which then would go lost.

Title [XML Import] An & in the partname of MusicXML file results in unloadable MuseScore file [XML and CAPX Import] An & in the partname or in a staff text of MusicXML or CAPX file results in unloadable MuseScore file