+
+class Barline(object) :
+
+ def __init__(self, node) :
+ self.node = node
+ self.location = node.getAttribute('location')
+ try :
+ repeat = node.getElementsByTagName('repeat')[0]
+ repeat = {'direction' : repeat.getAttribute('direction'),
+ 'times' : int(repeat.getAttribute('times') or 1)}
+ self.repeat = repeat
+ except IndexError :
+ self.repeat = None