Skip to main content
Topic: NWCCONVERTOR (Read 383532 times) previous topic - next topic

Re: NWCCONVERTOR

Reply #200
Quote
The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings "&amp;" and "&lt;" respectively.
The right angle bracket (>) may be represented using the string "&gt;", and MUST, for compatibility, be escaped using either "&gt;" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section.

Re: NWCCONVERTOR

Reply #201
More generally, the following chars must be "escaped" in xml:
Quote
"   &quot;
'   &apos;
<   &lt;
>   &gt;
&   &amp;

Re: NWCCONVERTOR

Reply #202
pencil-button.png is missing in the .zip.
There's no way to include it permanently in the .exe?

Re: NWCCONVERTOR

Reply #203
Hi Gust,
confirmed.  Perhaps, given this is a problem that will certainly occur in the future, you could specifically check for these problems during conversion and either delete or replace them with a flag - maybe "BLANK"?

Also, and I don't know if it's a problem specific to my installation or Win11, NWCCONVERTOR can't seem to remember how to open the MusicXML file with Musescore.  The correct path is in the options screen, but if you press OK, the config file is updated without the entry, UNLESS your browse to it beforehand.  Then if you press OK the config file is saved with the correct path and it all works until next time you run NWCCONVERTOR, where, even though the correct path is in the config file, NWCCONVERTOR ignores it and you have to browse to it again...
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #204
you could specifically check for these problems during conversion and either delete or replace them with a flag - maybe "BLANK"?
In the xml he following chars are reserved and must be "escaped", that is:
"  replaced with  &quot;
'   replaced with  &apos;
<  replaced with  &lt;
>  replaced with &gt;
& replaced with  &amp;
(whatever similitude to html is...  ;) )
This is NOT my idea. This is the standard!
https://www.w3.org/TR/xml11/#NT-Char
- 2.4 Character Data and Markup

Re: NWCCONVERTOR

Reply #205
I replaced the zip file, pencil icon s now included.

I've noted for following release:
- replace special characters with escape values
- solve problem opening with Musescore.
Always look on the bright side of life!

 

Re: NWCCONVERTOR

Reply #206
Crash! (see attachment)