Bad Format Error
For some reason I get a bad format error when opening the attached score. The details read "XML read error at line 604 column 31:"
Not a big deal to rescore this but thought I might pass it along anyway.
Attachment | Size |
---|---|
So Nice.mscz | 22.25 KB |
Comments
MSCZ files are just compressed MSCX files (using gzip compression). If you "gunzip" the file and open it with a text editor you can read the XML contents inside.
Line 604 reads:
The problem is the "&" (ampersand) character (shown here in bold). "&" has a special meaning in XML (and HTML) where it is used to introduce character codes like these ones.
To correct the problem, simply replace the ampersand with its own character code "
&
":Save the file and you will be able to open it again in MuseScore. The & is displayed correctly:
I've attached the file with the change already made in case you don't have a copy of gzip and gunzip.
In reply to MSCZ files are just by shoogle
Help me please! I had the same error at line 549 column 59 but I did the same what you said and I didn't see "&", I just saw this:
<?xml version="1.0" encoding="UTF-8"?>
Can you fix the file for me and tell me how you fix it?
In reply to Help me please! I had the… by anh231295
https://musescore.org/en/node/276312
In reply to https://musescore.org/en… by Shoichi
Here's one where I just changed the font name. I worked for me. Gap_Me_Trong_Mo.mscx
In reply to https://musescore.org/en… by Shoichi
I did it. Thank you very much.
In reply to Help me please! I had the… by anh231295
Here's the fixed file. It looked like you had foreign characters in the file and the & in the font name caused problems. I deleted both in that line and it works.
Gap_Me_Trong_Mo.mscx
In reply to Here's the fixed file. It… by mike320
Thank you very much.
In reply to MSCZ files are just by shoogle
Help please! It says I have an error at line 1937, column 59. I tried to find it myself but did not have any luck. Thanks so much in advance for your help.
In reply to Help please! It says I have… by allansch13
Take this. You'd been using a font with an & in its name
In reply to Take this. You'd been using… by Jojo-Schmitz
Ha! Ha! Ha!
Du bist schon da!
In reply to Take this. You'd been using… by Jojo-Schmitz
Thanks so much!
In reply to Help please! It says I have… by allansch13
Seems like a problem with the title font with an ampersand.
See if this works:
No_Time_to_Die2.mscz
Hmm, I fixed the problem for you but then I noticed something else. Your original file's XML claims it was created with (or at least modified by) MuseScore 2.0.2:
But the problems with "&" were supposed to have been fixed since before even 2.0 was released:
#33451: Ampersand character and any subsequent characters are not displayed in Staff Name
#47801: Score with parts and a part name containing an "&" can't get opened again after first save
#47786: Copyright is truncated in header/footer when containing an &
So it looks like there might be another bug that needs fixing at our end.
Would I be right in thinking that you originally created the score in either MuseScore 1.X or one of the beta releases for 2.0 and then modified it later in 2.0.2?
In reply to Hmm, I fixed the problem for by shoogle
I know ampersand has been a problem for some time. I noticed the issue more so when entering copyrights with the Wizard.
I'm fairly confident this score was originally created with a version prior to 2.0. I must have converted it to 2.0 shortly after the release. I just now opened this score since then to made some notation for my band.
Thanks for spending your time with the issue and hope to hear from you on this sometime in the future.
In reply to I know ampersand has been a by rwmol
BTW, this problem doesn't affect your score anymore. I manually replaced the & so you are safe to use the new version I uploaded for you. The issue now is making the replacement process automatic, but like I say, you don't need to wait for that to happen because I've already fixed it for you manually.
In reply to BTW, this problem doesn't by shoogle
And, I thank you.