Skip Menu |

This queue is for tickets about the Tree-XPathEngine CPAN distribution.

Report information
The Basics
Id: 47378
Status: new
Priority: 0/
Queue: Tree-XPathEngine

People
Owner: Nobody in particular
Requestors: Eric [...] Peters.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug and Fix for XML::XPathEngine findnodes_as_string
Date: Fri, 26 Jun 2009 16:25:37 -0700
To: Michel Rodriguez <mirod [...] cpan.org>, bug-tree-xpathengine [...] rt.cpan.org
From: Eric Peters <Eric [...] Peters.org>
HTML::Element doesn't have an asString method so the findnodes_as_string method fails: Can't locate object method "toString" via package "HTML::Element" I updated the code in findnodes_as_string to use the same method in findnodes_as_strings and it works fine: if ($results->isa('XML::XPathEngine::NodeSet')) { return join '', map { $_->asString } $results->get_nodelist; } => if ($results->isa('XML::XPathEngine::NodeSet')) { return join '', map { $_->getValue } $results->get_nodelist; } Regards, Eric