def METHOD_NAME(xml_output,Output_lines):
    Observation_Data_tag=False
    Observation_Entry_tag=False
    for line in Output_lines:
        if ( 'name="Observation Data"' in line ):
            Observation_Data_tag=True
            xml_output.write("%s\n" % ( line ) )
        elif ( Observation_Data_tag ):
            if ( 'name="Observation Output Filename"' in line ):
                xml_output.write("%s\n" % ( line ) )
            elif ( '<ParameterList name=' in line ):
                Observation_Entry_tag=True
                xml_output.write("%s\n" % ( line ) )
            elif ( Observation_Entry_tag ):
                if ( 'name="Time Macro"' in line ):
                    # extract the value
                    new_value= 'value="{'+re.findall(r'value="([^"]*)"', line)[0]+'}"'
                    # update the value
                    line=re.sub(r'value=".*"', new_value, line)
                    # update the type
                    line=re.sub(r'type="string"', 'type="Array(string)"', line)
                    xml_output.write("%s\n" % ( re.sub(r'name="Time Macro"','name="Time Macros"', line)) )
                elif ( '</ParameterList>' in line ):
                    Observation_Entry_tag=False
                    xml_output.write("%s\n" % ( line ) )
                else:
                    xml_output.write("%s\n" % ( line ) )
            elif ( '</ParameterList>' in line ):
                Observation_Data_tag=False
                xml_output.write("%s\n" % ( line ) )
            else:
                xml_output.write("%s\n" % ( line ) )
        else:
            xml_output.write("%s\n" % ( line ) )
    return