code: def struct_to_xml(node, struct):
      
      for obj in struct:
          for k, v in obj.items():
              etree.SubElement(node, k).text = v
docs: Turn a list of dicts into XML nodes with tag names taken from the dict
      keys and element text taken from dict values. This is a list of dicts
      so that the XML nodes can be ordered in the XML output.