refactored process_xml_node, added tests and

improved get_submitter_from_subject