'Parse the MusicXML <attributes> element.'

def _parse_attributes(self, xml_attributes):

    for child in xml_attributes:
        if (child.tag == 'divisions'):
            self.state.divisions = int(child.text)
        elif (child.tag == 'key'):
            self.key_signature = KeySignature(self.state, child)
        elif (child.tag == 'time'):
            if (self.time_signature is None):
                self.time_signature = TimeSignature(self.state, child)
                self.state.time_signature = self.time_signature
            else:
                raise MultipleTimeSignatureException('Multiple    time    signatures')
        elif (child.tag == 'transpose'):
            transpose = int(child.find('chromatic').text)
            self.state.transpose = transpose
            if (self.key_signature is not None):
                self.key_signature.key += transpose
        else:
            pass
