public void ApplyTransformation(ScoreDocument score, XmlDocument museScoreXmlFile) { if (!score.RemoveLabels) { return; } var shortNameNodes = museScoreXmlFile.SelectNodes("//shortName[subtype[text()='InstrumentShort']]/html-data"); if (shortNameNodes == null) { return; } var longNameNodes = museScoreXmlFile.SelectNodes("//name[subtype[text()='InstrumentLong']]/html-data"); if (longNameNodes == null) { return; } foreach (var shortNameNode in shortNameNodes) { ((XmlElement)shortNameNode).InnerXml = ""; } foreach (var longNameNode in longNameNodes) { ((XmlElement)longNameNode).InnerXml = ""; } }
public void ApplyTransformation(ScoreDocument score, XmlDocument museScoreXmlFile) { var composerNode = museScoreXmlFile.SelectSingleNode("//Text[subtype[text()='Composer']]/html-data//p") as XmlElement; if (composerNode == null) { return; } composerNode.InnerXml = "<span style=\"font-size:12pt;\">" + score.GetComposerAndTexter() + "</span><br/>" + "<span style=\"font-size:9pt;\">" + score.GetArrangedBy() + "</span>"; }