--- loncom/xml/lonxml.pm 2006/11/01 23:24:51 1.424 +++ loncom/xml/lonxml.pm 2006/11/10 19:41:34 1.425 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.424 2006/11/01 23:24:51 albertel Exp $ +# $Id: lonxml.pm,v 1.425 2006/11/10 19:41:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -342,6 +342,11 @@ sub xmlparse { my $finaloutput = &inner_xmlparse($target,\@stack,\@parstack,\@pars, $safeeval,\%style_for_target,1); + if (@stack) { + &warning("At end of file some tags were still left unclosed, ". + '<'.join('>, <',reverse(@stack)). + '>'); + } if ($env{'request.uri'}) { &writeallows($env{'request.uri'}); }