title: How do you save a python flickrapi response object as an XML file
body: <pre><code>import sys
  
  import os
  
  import urllib
  
  from xml.etree.ElementTree import ElementTree
  
  import flickrapi
  
  api_key = 'myApiKey'
  
  api_password = 'Mysecret'
  
  flickrClient = flickrapi.FlickrAPI(api_key, api_password)
  
  photos = flickrClient.photos_getinfo(photo_id='2124494179')
  
  //tree=ElementTree(flickrClient.photos_getinfo)
  
  print (photos)
  </code></pre>
  
  <p>I was trying to write the Flickr response into file to save the information using <code>ElementTree</code>,
  but my attempts were unsuccessful. How can I save the obj value as <code>xml/txt</code> file.</p>
  
  <p>I'm using <code>flickr.photos.getInfo</code> method to collect data about images. Sorry but I need details to overcome the error <code>&lt;Element rsp at 101463b00&gt;</code>. BTW I'm starting with one image to see how the code will work.</p>