--- loncom/xml/lonxml.pm 2007/08/29 21:49:38 1.454 +++ loncom/xml/lonxml.pm 2007/08/31 19:32:54 1.455 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.454 2007/08/29 21:49:38 albertel Exp $ +# $Id: lonxml.pm,v 1.455 2007/08/31 19:32:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1529,9 +1529,13 @@ ENDNOTFOUND ['editmode']); } if (!$env{'form.editmode'} || $env{'form.viewmode'} || $env{'form.discardview'}) { + &Apache::structuretags::reset_problem_globals(); $result = &Apache::lonxml::xmlparse($request,$target,$filecontents, '',%mystyle); - undef($Apache::lonhomework::parsing_a_task); + # .html files may contain or need to clean + # up if it did + &Apache::structuretags::reset_problem_globals(); + &Apache::lonhomework::finished_parsing(); &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, ['rawmode']); if ($env{'form.rawmode'}) { $result = $filecontents; }