title: Using xml.etree.ElementTree to parse a buffer, not a file
body: <p>I am trying to use one of the standard python3 libs to parse some data, that is being returned as XML, from a website. I just want something really simple. I am not doing anything that complex.</p>
  <p>It <em>seems</em> like xml.etree.ElementTree is exactly what I want. Except, the parse function takes a file name parameter, instead of a buffer which contains the xml. I don't see a class member that seems to take a buffer/string. If it were the other way around, you could easily still read in that file and parse it with &quot;ET.Parse(fd.read(-1))&quot; and you are done. But, alas, the function requires a filename. I can work around this by writing to a file in /tmp, then parsing it. But, that seems silly (to be polite) to write to disk, only to read it back in and parse it.</p>
  <p>Basically, I want:</p>
  <p>xml.etree.ElementTree.parse(xmlbuffer)</p>
  <p>Where, xmlbuffer is a string, not a filename.</p>
  <p>Any ideas?</p>