partial fix for #17508
Merge pull request #1162 from AntonioBL/accidentals_xml

partial fix for #17508