X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FRecord.pm;h=165f62e525c6ed7304515a7b596c57c32e6ec253;hp=2f67dc1d2b60e5eba2a58ac097c761b02025b713;hb=4172edcd817f7b978a772fe2b8365e4f1ee8f3bb;hpb=acc9fdde66959c0e1faa75d6e8ca2936c18fc9f4 diff --git a/lib/ZOOM/IRSpy/Record.pm b/lib/ZOOM/IRSpy/Record.pm index 2f67dc1..165f62e 100644 --- a/lib/ZOOM/IRSpy/Record.pm +++ b/lib/ZOOM/IRSpy/Record.pm @@ -1,4 +1,4 @@ -# $Id: Record.pm,v 1.8 2006-07-24 16:44:00 mike Exp $ +# $Id: Record.pm,v 1.10 2006-07-25 16:53:28 mike Exp $ package ZOOM::IRSpy::Record; @@ -63,7 +63,7 @@ sub append_entry { my $this = shift(); my($xpath, $frag) = @_; - print STDERR "this=$this, xpath='$xpath', frag='$frag'\n"; + #print STDERR "this=$this, xpath='$xpath', frag='$frag'\n"; my $root = $this->{zeerex}; # XML::LibXML::Element ISA XML::LibXML::Node my $xc = XML::LibXML::XPathContext->new($root); $xc->registerNs(zeerex => "http://explain.z3950.org/dtd/2.0/"); @@ -86,10 +86,7 @@ sub append_entry { scalar(@nodes), " matches for '$xpath': using first") if @nodes > 1; - my $node = $nodes[0]; - # $node ISA XML::LibXML::ElementXML::LibXML::Element - $this->_half_decent_appendWellBalancedChunk($node, $frag); - #print STDERR "POST: zeerex='$root' = \n", $root->toString(), "\n"; + $this->_half_decent_appendWellBalancedChunk($nodes[0], $frag); } @@ -140,7 +137,7 @@ sub _half_decent_appendWellBalancedChunk { die "mismatched XML start/end <$open>...<$close>" if $close ne $tag; print STDERR "tag='$tag', attrs=[$attrs], content='$content'\n"; - die "### no code yet to make DOM node"; + die "## no code yet to make DOM node"; }