Import XML dotted notes

• Jun 22, 2015 - 16:27

I do convert NWC files via xml2nwc tool.
Since Musescore V2 (not in the previous version) I do receive on input the message that it is not a real xml file, but it let me continue anyway with good MSCZ file with the exeption of:
-title is lost
-tempo is lost
and all dotted notes are replaced by the note with a rest.

It attachment an XML example


Comments

xml2nwc, not nwc2xml?

Actually the error message (for this file) is:
Fatal error: line 3 column 194 Element movement-title is not defined in this scope.

Followed by a message claiming the file corrupt in many places:
Measure 11 Staff 1 incomplete. Expected: 4/4; Found: 9/8
Measure 11 Staff 2 incomplete. Expected: 4/4; Found: 10/8
Measure 11 Staff 3 incomplete. Expected: 4/4; Found: 9/8
Measure 11 Staff 4 incomplete. Expected: 4/4; Found: 10/8
Measure 12 Staff 1 incomplete. Expected: 4/4; Found: 9/8
Measure 12 Staff 2 incomplete. Expected: 4/4; Found: 9/8
Measure 12 Staff 3 incomplete. Expected: 4/4; Found: 9/8
Measure 12 Staff 4 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 1 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 2 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 3 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 4 incomplete. Expected: 4/4; Found: 9/8
Measure 14 Staff 2 incomplete. Expected: 4/4; Found: 5/4
Measure 14 Staff 3 incomplete. Expected: 4/4; Found: 5/4
Measure 14 Staff 4 incomplete. Expected: 4/4; Found: 9/8
Measure 22 Staff 1 incomplete. Expected: 4/4; Found: 5/4
Measure 22 Staff 2 incomplete. Expected: 4/4; Found: 5/4
Measure 22 Staff 3 incomplete. Expected: 4/4; Found: 5/4
Measure 22 Staff 4 incomplete. Expected: 4/4; Found: 5/4

In reply to by [DELETED] 5

I recieved a reaction from Niversoft:
The Title is in the XML file but is not displayed by MuseScore v1.3. It seems the converter does not insert the movement-title element at the correct location in the XML file. This will be fixed.

The Tempo is not converted at all yet.

Dotted notes are all OK in MuseScore v1.3. I didn't try MuseScore v2.

In reply to by Pooms

The file is invalid MusicXML because many elements are incorrectly ordered, which will easily be shown by any XML schema validator. The MuseScore MusicXML importer unfortunately depends on the correct order of elements, which causes many issues with your file.

Please ask your supplier to use any XML schema validator to make sure the files produced are valid. For starters, perhaps you could forward the following information:
- movement-number and movement-title go between score-partwise and identification
- part-name goes between score-part and midi-instrument
- within attributes, the order is divisions, key, time, clef
- within clef, the order is sign, line
- within note, the order is pitch, duration, voice, type, dot, staff, lyric

Do you still have an unanswered question? Please log in first to post your question.