--- loncom/xml/lonxml.pm 2005/02/28 22:17:09 1.358 +++ loncom/xml/lonxml.pm 2005/03/10 02:34:59 1.361 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.358 2005/02/28 22:17:09 albertel Exp $ +# $Id: lonxml.pm,v 1.361 2005/03/10 02:34:59 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -184,7 +184,7 @@ sub xmlend { &Apache::lonxml::newparser($parser,\$discussion,''); return ''; } else { - return $discussion.''; + return $discussion.&Apache::loncommon::endbodytag(); } } @@ -368,6 +368,9 @@ sub xmlparse { } &do_registered_ssi(); if ($Apache::lonxml::counter_changed) { &store_counter() } + if ($ENV{'form.return_only_error_and_warning_counts'}) { + return "$errorcount:$warningcount"; + } return $finaloutput; } @@ -1289,8 +1292,7 @@ sub handler { $Apache::lonxml::debug=$ENV{'user.debug'}; if ($ENV{'browser.mathml'}) { - #&Apache::loncommon::content_type($request,'text/xml'); - &Apache::loncommon::content_type($request,'text/html'); + &Apache::loncommon::content_type($request,'text/xml'); } else { &Apache::loncommon::content_type($request,'text/html'); }