How can I print the output of an element to a text file using xml.etree.elementtree from https://docs.python.org/2/library/xml.etree.elementtree.html
Please look at the first FOR loop section. In the example below I want to print or pipe child.tag and child.attrib to separate files.
>>> for child in root:
... print child.tag, child.attrib