def struct_to_xml(node, struct):
for obj in struct:<EOL><INDENT>for k, v in obj.items():<EOL><INDENT>etree.SubElement(node, k).text = v<EOL><DEDENT><DEDENT>
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.