This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id:
17145
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
ddascalescu [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
3.22
Fixed in:
3.23



Subject: Context position of non-existent elements in XPATH expressions
Date: Wed, 18 Jan 2006 20:11:09 -0800
To: bug-XML-Twig@rt.cpan.org
From: Dan Dascalescu <ddascalescu@gmail.com>
#! perl -w # Error on context position of non-existent elements in XPATH expressions: # Can't call method "children" on an undefined value at (eval N) line 1 # Copyright (C) 2005 Dan Dascalescu <ddascalescu@gmail.com> use strict; use XML::Twig; print "1..1\n"; my $twig= new XML::Twig()->parse("<root></root>"); $twig->get_xpath('//root/elt[1]/child'); print "ok 1\n"; exit 0; Hope that helps, Dan Dascalescu
On Wed Jan 18 23:11:54 2006, ddascalescu@gmail.com wrote:
Show quoted text
> #! perl -w > > # Error on context position of non-existent elements in XPATH expressions: > # Can't call method "children" on an undefined value at (eval N)
line 1
Show quoted text
> > # Copyright (C) 2005 Dan Dascalescu <ddascalescu@gmail.com> > > use strict; > use XML::Twig; > > print "1..1\n"; > > my $twig= new XML::Twig()->parse("<root></root>"); > $twig->get_xpath('//root/elt[1]/child'); > > print "ok 1\n"; > exit 0;
Fixed in the dv version, thanks __ mirod


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.