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

Owner: Nobody in particular
Requestors: Eric [...]

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 [...]>, bug-tree-xpathengine [...]
From: Eric Peters <Eric [...]>
Download (untitled) / with headers
text/plain 541b
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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to