--- projects/cms/source/host/ihost-perl/ihost.pl 2001/12/18 04:07:17 1.44 +++ projects/cms/source/host/ihost-perl/ihost.pl 2001/12/18 06:07:00 1.45 @@ -8,7 +8,7 @@ # a typical Unix/Linux box. # # $Author: tdb $ -# $Id: ihost.pl,v 1.44 2001/12/18 04:07:17 tdb Exp $ +# $Id: ihost.pl,v 1.45 2001/12/18 06:07:00 tdb Exp $ #------------------------------------------------------------ $| = 1; @@ -429,11 +429,11 @@ sub make_xml() { $xmltemp .= &make_xml("$curlevel$curtag", $curline); } my($nextline) = $data[0]; chomp $nextline if defined $nextline; - if((defined $nextline) && ($nextline =~ /^$curlevel$curtag/)) { + $curtag =~ s/(.*)\./$1/; + if((defined $nextline) && ($nextline =~ /^$curlevel$curtag\./)) { $curline = ""; } else { - $curtag =~ s/(.*)\./$1/; $xmltemp = "<$curtag$attributes>$xmltemp" unless $curtag eq ""; return $xmltemp; }