I do not understand the question. 'investigationTime' is an attribute, not a subnode. The alternative is to write  `gmf_set_node.attrib['investigationTime'] = str(gmf_set.investigation_time)`