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