MusicXML anomalies - 04/03/24 10:28 AM
Following the SongMasterPro thread, there are issues with importing and exporting MusicXML to an from various programs. I have to say thet that doesn't surprise me at all, because MusicXML is pretty convoluted (IMHO) due at least in part to trying to merge both music markup and the convolutions of MIDI into one structure.
The question & thoughts...
Out of curiosity, has anyone tried something like the xml tidy program on this and does it help?
If not, I may explore and see if it does.
I tried it quickly once, but the MusicXML I tried points for the DTD to www.musicxml.org (404), whilst I think it should now point to w3.org, so then I just left it.
I frequently use tidy to sanitise HTML and some XML, but have yet to try it in earnest on MusicXML. It may just report lots of non-compliances
Edit: The "Hello, World" example on W3 points to musicxml.org, so maybe it's still just broken.
Edit 2: Apparently it doesn't have to resolve, "it's just a string". Tidy presently doesn't recognise it. That said, the schema for MusicXML 3.1 "contains an invalid "<xs:import" URI that needed patching in 2020, and MusicXML 4.0 needs exactly the same patch today. The Musescore file a parsed with xmllint validates correctly.
The question & thoughts...
Out of curiosity, has anyone tried something like the xml tidy program on this and does it help?
If not, I may explore and see if it does.
I tried it quickly once, but the MusicXML I tried points for the DTD to www.musicxml.org (404), whilst I think it should now point to w3.org, so then I just left it.
I frequently use tidy to sanitise HTML and some XML, but have yet to try it in earnest on MusicXML. It may just report lots of non-compliances
Edit: The "Hello, World" example on W3 points to musicxml.org, so maybe it's still just broken.
Edit 2: Apparently it doesn't have to resolve, "it's just a string". Tidy presently doesn't recognise it. That said, the schema for MusicXML 3.1 "contains an invalid "<xs:import" URI that needed patching in 2020, and MusicXML 4.0 needs exactly the same patch today. The Musescore file a parsed with xmllint validates correctly.