X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXXml.pm;h=2d83e16bb61e0d6f4a16c1f86b785b48c9be59cb;hb=aff34665f8f175d135270f9e49c110bcce90e7b8;hp=a9072d467d4fcc3ea8e3ea150be2174c3cd749af;hpb=bc67e4afa9b3c9fcf0e537e04a743ad5852356e6;p=spider.git diff --git a/perl/DXXml.pm b/perl/DXXml.pm index a9072d46..2d83e16b 100644 --- a/perl/DXXml.pm +++ b/perl/DXXml.pm @@ -64,7 +64,7 @@ sub init $XML::Simple::PREFERRED_PARSER = 'XML::Parser'; import XML::Simple; $DXProt::handle_xml = 1; - $xs = new XML::Simple(Cache=>[]); + $xs = new XML::Simple(ContentKey=>'content', ForceArray=>1); } undef $@; } @@ -125,9 +125,9 @@ sub normal $xref->{'-timet'} = $t; return if DXDupe::check("xml,$o,$t,$id", $dupeage); - $xref = bless $xref, $pkg; - $xref->{'-xml'} = $line; - $xref->handle_input($dxchan); + my $r = bless $xref, $pkg; + $r->{'-xml'} = $line; + $r->handle_input($dxchan); } # @@ -269,7 +269,7 @@ sub route if ($dxchan->handle_xml) { $dxchan->send($self->toxml); - } elsif ($dxchan->isnode) { + } elsif ($dxchan->is_node) { my $ref = $self->topcxx($dxchan); if (ref $ref) { for (@$ref) {