'Convert this ResourceRecordSet into XML
to be saved via the ChangeResourceRecordSetsRequest'

def to_xml(self):

    changesXML = ''
    for change in self.changes:
        changeParams = {'action': change[0], 'record': change[1].to_xml()}
        changesXML += (self.ChangeXML % changeParams)
    params = {'comment': self.comment, 'changes': changesXML}
    return (self.ChangeResourceRecordSetsBody % params)
