def to_xml(self):
        assert self.connection != None
        s = '<?xml version="1.0" encoding="UTF-8"?>\n'
        s += '<InvalidationBatch xmlns="http://cloudfront.amazonaws.com/doc/%s/">\n' % self.connection.Version
        for p in self.paths:
            s += '    <Path>%s</Path>\n' % self.escape(p)
        s += '    <CallerReference>%s</CallerReference>\n' % self.caller_reference
        s += '</InvalidationBatch>\n'
        return s
Get this batch as XML
dataset/ETHPy150Open radlab/sparrow/deploy/third_party/boto-2.1.1/boto/cloudfront/invalidation.py/InvalidationBatch.to_xml