Re: XML::XPath 1.42 error
Adam Pfeiffer <[email protected]> Tue, 13 Feb 2018 15:52:19 -0700
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <CAGOKLU97AUEWqFoSZSpNmqc75Rn=ZRNfWiSYYWj8zf-GvP1V_w@mail.gmail.com> |
--===============1426215690== Content-Type: multipart/alternative; boundary="f403045dcc9cd186f805651fd8be" --f403045dcc9cd186f805651fd8be Content-Type: text/plain; charset="UTF-8" Glad to help! Adam Pfeiffer Brocade SQA Automation Lead 720-270-4396 <(720)%20270-4396> | [email protected] On Tue, Feb 13, 2018 at 2:43 PM, Morty <[email protected]> wrote: > That was it! Works great. Thanks. > > - Morty > > > On Tue, Feb 13, 2018 at 02:28:45PM -0700, Adam Pfeiffer wrote: > > 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 > > > > _______________________________________________ > Perl-XML mailing list > [email protected] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > --f403045dcc9cd186f805651fd8be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Glad to help!</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 dir=3D"ltr"><div style=3D"color:rgb(136,136,13= 6);font-size:12.8px">Adam Pfeiffer</div><div style=3D"color:rgb(136,136,136= );font-size:12.8px">Brocade SQA Automation Lead</div><div style=3D"color:rg= b(136,136,136);font-size:12.8px"><a href=3D"tel:(720)%20270-4396" value=3D"= +17202704396" style=3D"color:rgb(17,85,204)" target=3D"_blank">720-270-4396= </a>=C2=A0|=C2=A0<a href=3D"mailto:[email protected]" style=3D"color:rgb(= 17,85,204)" target=3D"_blank">[email protected]</a></div></div></div></di= v></div></div> <br><div class=3D"gmail_quote">On Tue, Feb 13, 2018 at 2:43 PM, Morty <span= dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex">That was it!=C2=A0 Works great.=C2=A0 Thanks.<br> <br> - Morty<br> <br> <br> On Tue, Feb 13, 2018 at 02:28:45PM -0700, Adam Pfeiffer wrote:<br> > I see that you are missing a closing=C2=A0 bracket.=C2=A0 You have [@c= lass..., but<br> > not closing bracket.=C2=A0 That may just be a typo, but fix that first= and see<br> > what happens.<br> ><br> > Thanks<br> ><br> > Adam Pfeiffer<br> > Brocade SQA Automation Lead<br> > <a href=3D"tel:720-270-4396" value=3D"+17202704396">720-270-4396</a> &= lt;(720)%20270-4396> | <a href=3D"mailto:[email protected]">acpinco01@= gmail.com</a><br> ><br> > On Tue, Feb 13, 2018 at 2:13 PM, Morty <<a href=3D"mailto:morty%2Bp= [email protected]">[email protected]</a>> wrote:<br> ><br> > > I have a user who is getting an error with xpath.=C2=A0 I can rep= roduce<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 'print $XML::XPath::VERSION'<br> > > 1.42<br> > > $ xpath -e '//tax-check[@class=3D"Clade based check"= ;/results/@status' $file<br> > > Can't locate object method "size" via package "= ;XML::XPath::Literal" at<br> > > /usr/local/xpath/1.42/local_<wbr>lib/lib/perl5/XML/XPath/Step.<wb= r>pm line 148.<br> > > $<br> > ><br> > > Any advice?<br> > ><br> > > Thanks!<br> > ><br> > > - Morty<br> > > ______________________________<wbr>_________________<br> > > Perl-XML mailing list<br> > > <a href=3D"mailto:[email protected]">Perl-XML@lis= tserv.ActiveState.<wbr>com</a><br> > > To unsubscribe: <a href=3D"http://listserv.ActiveState.com/mailma= n/mysubs" rel=3D"noreferrer" target=3D"_blank">http://listserv.ActiveState.= <wbr>com/mailman/mysubs</a><br> > ><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> </blockquote></div><br></div> --f403045dcc9cd186f805651fd8be-- --===============1426215690== 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 --===============1426215690==--