Skip Menu |
 

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

Report information
The Basics
Id: 17145
Status: resolved
Priority: 0/
Queue: XML-Twig

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

Bug Information
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>
Download (untitled) / with headers
text/plain 422b
#! 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
Download (untitled) / with headers
text/plain 520b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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