--- loncom/xml/lonxml.pm 2005/03/16 15:46:42 1.364 +++ loncom/xml/lonxml.pm 2005/03/16 19:09:44 1.365 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.364 2005/03/16 15:46:42 albertel Exp $ +# $Id: lonxml.pm,v 1.365 2005/03/16 19:09:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1056,7 +1056,8 @@ sub get_all_text { sub newparser { my ($parser,$contentref,$dir) = @_; push (@$parser,HTML::LCParser->new($contentref)); - $$parser['-1']->xml_mode('1'); + $$parser[-1]->xml_mode(1); + $$parser[-1]->marked_sections(1); if ( $dir eq '' ) { push (@Apache::lonxml::pwd, $Apache::lonxml::pwd[$#Apache::lonxml::pwd]); } else {