title: Reading XML file's content from AWS S3 bucket using boto3 library
body: <p>I am trying to read the content of an XML file for parsing using the BOTO3 library and getting below error while doing that.
  I am using the below python code.</p>
  
  <pre><code>import xml.etree.ElementTree as et
  import boto3
  s3 = boto3.resource('s3')
  bucket = s3.Bucket('bucket_name')
  key = 'audit'
  
  for obj in bucket.objects.filter(Prefix="Folder/XML.xml"):
      key = obj.key
      body = obj.get()['Body'].read()
      parsed_xml = et.fromstring(body)
  </code></pre>
  
  <p>I am getting below error while printing parsed_xml variable or body.</p>
  
  <p><strong>---------------------------------------------------------------------------
  NameError                                 Traceback (most recent call last)
   in ()
  ----> 1 parsed
  NameError: name 'parsed_xml' is not defined</strong>
  If I will print body in the above code, it should be shown in XML tags.</p>