[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 07 Feb 2003 21:55:58 -0000


albertel		Fri Feb  7 16:55:58 2003 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - should check first
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.227 loncom/xml/lonxml.pm:1.228
--- loncom/xml/lonxml.pm:1.227	Mon Feb  3 13:03:53 2003
+++ loncom/xml/lonxml.pm	Fri Feb  7 16:55:57 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.227 2003/02/03 18:03:53 harris41 Exp $
+# $Id: lonxml.pm,v 1.228 2003/02/07 21:55:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1144,11 +1144,11 @@
 	 }
        }
      }
+     if (($depth >=0) && ($#$pars == 0) ) { $top_empty=1; }
      if (($depth >=0) && ($#$pars > 0) ) {
        pop(@$pars);
        pop(@Apache::lonxml::pwd);
      }
-     if (($depth >=0) && ($#$pars == 0) ) {        &debug("here4");$top_empty=1; }
    }
    if ($top_empty && $depth >= 0) {
        #never found the end tag ran out of text, throw error send back blank