Re: XML::XPath 1.42 error

Adam Pfeiffer <[email protected]> Tue, 13 Feb 2018 14:28:45 -0700
Newsgroups gmane.comp.lang.perl.xml
Message-ID <CAGOKLU8QP_+MmWG=EFTho6pCEwuD-kFi8+T9mpB9wH811Wn7EA@mail.gmail.com>
--===============0871183766==
Content-Type: multipart/alternative; boundary="94eb2c07bce6fc160b05651eaddd"

--94eb2c07bce6fc160b05651eaddd
Content-Type: text/plain; charset="UTF-8"

I see that you are missing a closing  bracket.  You have [@class..., but
not closing bracket.  That may just be a typo, but fix that first and see
what happens.

Thanks

Adam Pfeiffer
Brocade SQA Automation Lead
720-270-4396 <(720)%20270-4396> | [email protected]

On Tue, Feb 13, 2018 at 2:13 PM, Morty <[email protected]> wrote:

> I have a user who is getting an error with xpath.  I can reproduce
> this under xpath 1.42:
>
> $ eval $(perl -Mlocal::lib=/usr/local/xpath/1.42/local_lib)
> $ perl -MXML::XPath -le 'print $XML::XPath::VERSION'
> 1.42
> $ xpath -e '//tax-check[@class="Clade based check"/results/@status' $file
> Can't locate object method "size" via package "XML::XPath::Literal" at
> /usr/local/xpath/1.42/local_lib/lib/perl5/XML/XPath/Step.pm line 148.
> $
>
> Any advice?
>
> Thanks!
>
> - Morty
> _______________________________________________
> Perl-XML mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

--94eb2c07bce6fc160b05651eaddd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I see that you are missing a closing=C2=A0 bracket.=C2=A0 =
You have [@class..., but not closing bracket.=C2=A0 That may just be a typo=
, but fix that first and see what happens.<div><br></div><div>Thanks</div><=
/div><div class=3D"gmail_extra"><br clear=3D"all"><div><div class=3D"gmail_=
signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div di=
r=3D"ltr"><div style=3D"color:rgb(136,136,136);font-size:12.8px">Adam Pfeif=
fer</div><div style=3D"color:rgb(136,136,136);font-size:12.8px">Brocade SQA=
 Automation Lead</div><div style=3D"color:rgb(136,136,136);font-size:12.8px=
"><a href=3D"tel:(720)%20270-4396" value=3D"+17202704396" style=3D"color:rg=
b(17,85,204)" target=3D"_blank">720-270-4396</a>=C2=A0|=C2=A0<a href=3D"mai=
lto:[email protected]" style=3D"color:rgb(17,85,204)" target=3D"_blank">a=
[email protected]</a></div></div></div></div></div></div>
<br><div class=3D"gmail_quote">On Tue, Feb 13, 2018 at 2:13 PM, Morty <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_bl=
ank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">I have a user who is getting an error with xpath.=C2=A0 I can=
 reproduce<br>
this under xpath 1.42:<br>
<br>
$ eval $(perl -Mlocal::lib=3D/usr/local/xpath/<wbr>1.42/local_lib)<br>
$ perl -MXML::XPath -le &#39;print $XML::XPath::VERSION&#39;<br>
1.42<br>
$ xpath -e &#39;//tax-check[@class=3D&quot;Clade based check&quot;/results/=
@status&#39; $file<br>
Can&#39;t locate object method &quot;size&quot; via package &quot;XML::XPat=
h::Literal&quot; at /usr/local/xpath/1.42/local_<wbr>lib/lib/perl5/XML/XPat=
h/Step.<wbr>pm line 148.<br>
$<br>
<br>
Any advice?<br>
<br>
Thanks!<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
- Morty<br>
______________________________<wbr>_________________<br>
Perl-XML mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
veState.<wbr>com</a><br>
To unsubscribe: <a href=3D"http://listserv.ActiveState.com/mailman/mysubs" =
rel=3D"noreferrer" target=3D"_blank">http://listserv.ActiveState.<wbr>com/m=
ailman/mysubs</a><br>
</font></span></blockquote></div><br></div>

--94eb2c07bce6fc160b05651eaddd--

--===============0871183766==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

--===============0871183766==--