projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc67e4a
)
fix isnode problem
author
minima
<minima>
Mon, 23 Jan 2006 22:23:58 +0000
(22:23 +0000)
committer
minima
<minima>
Mon, 23 Jan 2006 22:23:58 +0000
(22:23 +0000)
perl/DXXml.pm
patch
|
blob
|
history
diff --git
a/perl/DXXml.pm
b/perl/DXXml.pm
index a9072d467d4fcc3ea8e3ea150be2174c3cd749af..2d83e16bb61e0d6f4a16c1f86b785b48c9be59cb 100644
(file)
--- 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;
$XML::Simple::PREFERRED_PARSER = 'XML::Parser';
import XML::Simple;
$DXProt::handle_xml = 1;
- $xs = new XML::Simple(C
ache=>[]
);
+ $xs = new XML::Simple(C
ontentKey=>'content', ForceArray=>1
);
}
undef $@;
}
}
undef $@;
}
@@
-125,9
+125,9
@@
sub normal
$xref->{'-timet'} = $t;
return if DXDupe::check("xml,$o,$t,$id", $dupeage);
$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);
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) {
my $ref = $self->topcxx($dxchan);
if (ref $ref) {
for (@$ref) {