[MusicXML import] Musescore cannot open MusicXML file it created if filename contains an ampersand

• May 19, 2021 - 15:12
Reported version
3.6
Type
Functional
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project

1) Create a musescore file
2) Export it as a compressed xml file
3) Try to open the compressed xml file

Musescore XML Error.jpg


Comments

Title Musescore connot open music xml file it created Musescore cannot open music xml file it created
Status active needs info

Score (.mscz) and/or XML (.mxl) needed, but at least the latter

Title Musescore connot open music xml file it created Musescore cannot open music xml file it created if title contains an ampersand
Workaround No Yes

Interesting, it stumbles accross the & in the title and only in the meta data, containers.xml, not the actual musicXML file (attached)
Workaround: Export as uncompress MusicXML, .musicxml or .xml instead (or unzip the .mxl file)

Attachment Size
Minuet & Trio.xml 168.03 KB

The (broken) container.xmp for the -mxl file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<container>
  <rootfiles>
    <rootfile full-path="Minuet & Trio.xml">
      </rootfile>
    </rootfiles>
  </container>

wheras the (working) container.xml for the .mscz file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<container>
  <rootfiles>
    <rootfile full-path="Minuet &amp; Trio.xml">
      </rootfile>
    </rootfiles>
  </container>

Here the ampersand is properly 'escaped'.

Fix version
4.0.0