--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone='no'?>
+<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 1.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
+<score-partwise>
+ <identification>
+ <rights>Copyright © XXXX by Y. ZZZZ.</rights>
+ <rights>Released To The Public Domain.</rights>
+ <miscellaneous>
+ <miscellaneous-field name="description">There can be multiple
+ <rights> tags in the identification element of the score. The
+ conversion shall still work, ideally using both of
+ them.</miscellaneous-field>
+ </miscellaneous>
+ </identification>
+ <part-list>
+ <score-part id="P1">
+ <part-name>MusicXML Part</part-name>
+ </score-part>
+ </part-list>
+ <part id="P1">
+ <measure number="1">
+ <note>
+ <rest/>
+ <duration>4</duration>
+ <voice>1</voice>
+ <type>whole</type>
+ </note>
+ <barline location="right">
+ <bar-style>light-heavy</bar-style>
+ </barline>
+ </measure>
+ </part>
+</score-partwise>
class Identification (Xml_node):
def get_rights (self):
- rights = self.get_maybe_exist_named_child ('rights')
- if rights:
- return rights.get_text ()
- else:
- return ''
+ rights = self.get_named_children ('rights')
+ ret = []
+ for r in rights:
+ ret.append (r.get_text ())
+ return string.join (ret, "\n")
def get_creator (self, type):
creators = self.get_named_children ('creator')