title: LXML add an element into root
body: <p>Im trying to take two elements from one file (file1.xml), and write them onto the end of another file (file2.xml).  I am able to get them to print out, but am stuck trying to write them onto file2.xml! Help !</p>
  
  <pre><code>filename = "file1.xml"
  appendtoxml = "file2.xml"
  output_file = appendtoxml.replace('.xml', '') + "_editedbyed.xml"
  parser = etree.XMLParser(remove_blank_text=True)
  tree = etree.parse(filename, parser)
  etree.tostring(tree)
  root = tree.getroot()
  
  
  a = root.findall(".//Device")
  b = root.findall(".//Speaker")
  
  
  
  for r in a:
      print etree.tostring(r)
  for e in b:
      print etree.tostring(e)
  
  NewSub = etree.SubElement (root, "Audio(just writes audio..")
  print NewSub
  </code></pre>
  
  <p>I want the results of a, b to be added onto the end of outputfile.xml in the root.</p>