--- loncom/xml/lonxml.pm 2007/08/03 23:29:54 1.449 +++ loncom/xml/lonxml.pm 2007/09/05 01:03:21 1.449.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.449 2007/08/03 23:29:54 albertel Exp $ +# $Id: lonxml.pm,v 1.449.2.1 2007/09/05 01:03:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1514,9 +1514,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; }