Skip Menu |

This queue is for tickets about the HTML-TreeBuilder-XPath CPAN distribution.

Report information
The Basics
Id: 78397
Status: open
Priority: 0/
Queue: HTML-TreeBuilder-XPath

People
Owner: Nobody in particular
Requestors: victor [...] vsespb.ru
Cc:
AdminCc:

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



Subject: Can't locate object method "toString" via package "HTML::TreeBuilder::XPath::TextNode"
Getting Fatal Error: Can't locate object method "toString" via package "HTML::TreeBuilder::XPath::TextNode" at /usr/local/share/perl/5.10.1/XML/XPathEngine.pm line 125 when using Xpath expressions ending with text()
On Mon Jul 16 08:13:20 2012, vsespb wrote: Show quoted text
> Getting > > Fatal Error: Can't locate object method "toString" via package > "HTML::TreeBuilder::XPath::TextNode" at > /usr/local/share/perl/5.10.1/XML/XPathEngine.pm line 125 > > when using Xpath expressions ending with text()
Sorry for the late answer. Would you have a test case by any chance? A simple example of expression that triggers the problem woudl be enough. Thanks. __ mirod
Subject: Re: [rt.cpan.org #78397] Can't locate object method "toString" via package "HTML::TreeBuilder::XPath::TextNode"
Date: Mon, 13 Aug 2012 20:56:35 +0400
To: bug-HTML-TreeBuilder-XPath [...] rt.cpan.org
From: Victor Efimov <victor [...] vsespb.ru>
ok, sure use HTML::TreeBuilder::XPath; my $tree= HTML::TreeBuilder::XPath->new; my $content = "<html><body id=1>mytext</body></html>"; $tree->parse($content); my $expr = '//body/text()'; $tree->findnodes($expr); $tree->findnodes_as_string($expr); it fails on last line "Can't locate object method "toString" via package "HTML::TreeBuilder::XPath::TextNode" at /usr/local/share/perl/5.10.1/XML/XPathEngine.pm line 125." 2012/8/13 MIROD via RT <bug-HTML-TreeBuilder-XPath@rt.cpan.org> Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=78397 > > > On Mon Jul 16 08:13:20 2012, vsespb wrote:
> > Getting > > > > Fatal Error: Can't locate object method "toString" via package > > "HTML::TreeBuilder::XPath::TextNode" at > > /usr/local/share/perl/5.10.1/XML/XPathEngine.pm line 125 > > > > when using Xpath expressions ending with text()
> > > Sorry for the late answer. Would you have a test case by any chance? A > simple example of expression that triggers the problem woudl be enough. > > Thanks. > __ > mirod >