import xml.etree.ElementTree as ET
parent = ET.Element('parent')
myattributes = {'size': 'small', 'gender': 'unknown'}
child = ET.SubElement(parent, 'child', attrib=myattributes, age='10')
ET.dump(parent)
Can someone please explain arguments of SubElement from the xml element tree module?