[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-xml
Subject:    Re: XML::XPath 1.42 error
From:       Adam Pfeiffer <acpinco01 () gmail ! com>
Date:       2018-02-13 22:52:19
Message-ID: CAGOKLU97AUEWqFoSZSpNmqc75Rn=ZRNfWiSYYWj8zf-GvP1V_w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Glad to help!

Adam Pfeiffer
Brocade SQA Automation Lead
720-270-4396 <(720)%20270-4396> | acpinco01@gmail.com

On Tue, Feb 13, 2018 at 2:43 PM, Morty <morty+perl-xml@frakir.org> 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> | acpinco01@gmail.com
> >
> > On Tue, Feb 13, 2018 at 2:13 PM, Morty <morty+perl-xml@frakir.org>
> 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
> > > Perl-XML@listserv.ActiveState.com
> > > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> > >
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

[Attachment #5 (text/html)]

<div dir="ltr">Glad to help!</div><div class="gmail_extra"><br clear="all"><div><div \
class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><div style="color:rgb(136,136,136);font-size:12.8px">Adam \
Pfeiffer</div><div style="color:rgb(136,136,136);font-size:12.8px">Brocade SQA \
Automation Lead</div><div style="color:rgb(136,136,136);font-size:12.8px"><a \
href="tel:(720)%20270-4396" value="+17202704396" style="color:rgb(17,85,204)" \
target="_blank">720-270-4396</a>  |  <a href="mailto:acpinco01@gmail.com" \
style="color:rgb(17,85,204)" \
target="_blank">acpinco01@gmail.com</a></div></div></div></div></div></div> <br><div \
class="gmail_quote">On Tue, Feb 13, 2018 at 2:43 PM, Morty <span dir="ltr">&lt;<a \
href="mailto:morty+perl-xml@frakir.org" \
target="_blank">morty+perl-xml@frakir.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">That was it!   Works great.   Thanks.<br> <br>
- Morty<br>
<br>
<br>
On Tue, Feb 13, 2018 at 02:28:45PM -0700, Adam Pfeiffer wrote:<br>
&gt; I see that you are missing a closing   bracket.   You have [@class..., but<br>
&gt; not closing bracket.   That may just be a typo, but fix that first and see<br>
&gt; what happens.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Adam Pfeiffer<br>
&gt; Brocade SQA Automation Lead<br>
&gt; <a href="tel:720-270-4396" value="+17202704396">720-270-4396</a> \
&lt;(720)%20270-4396&gt; | <a \
href="mailto:acpinco01@gmail.com">acpinco01@gmail.com</a><br> &gt;<br>
&gt; On Tue, Feb 13, 2018 at 2:13 PM, Morty &lt;<a \
href="mailto:morty%2Bperl-xml@frakir.org">morty+perl-xml@frakir.org</a>&gt; \
wrote:<br> &gt;<br>
&gt; &gt; I have a user who is getting an error with xpath.   I can reproduce<br>
&gt; &gt; this under xpath 1.42:<br>
&gt; &gt;<br>
&gt; &gt; $ eval $(perl -Mlocal::lib=/usr/local/xpath/<wbr>1.42/local_lib)<br>
&gt; &gt; $ perl -MXML::XPath -le &#39;print $XML::XPath::VERSION&#39;<br>
&gt; &gt; 1.42<br>
&gt; &gt; $ xpath -e &#39;//tax-check[@class=&quot;Clade based \
check&quot;/results/@status&#39; $file<br> &gt; &gt; Can&#39;t locate object method \
&quot;size&quot; via package &quot;XML::XPath::Literal&quot; at<br> &gt; &gt; \
/usr/local/xpath/1.42/local_<wbr>lib/lib/perl5/XML/XPath/Step.<wbr>pm line 148.<br> \
&gt; &gt; $<br> &gt; &gt;<br>
&gt; &gt; Any advice?<br>
&gt; &gt;<br>
&gt; &gt; Thanks!<br>
&gt; &gt;<br>
&gt; &gt; - Morty<br>
&gt; &gt; ______________________________<wbr>_________________<br>
&gt; &gt; Perl-XML mailing list<br>
&gt; &gt; <a href="mailto:Perl-XML@listserv.ActiveState.com">Perl-XML@listserv.ActiveState.<wbr>com</a><br>
 &gt; &gt; To unsubscribe: <a href="http://listserv.ActiveState.com/mailman/mysubs" \
rel="noreferrer" target="_blank">http://listserv.ActiveState.<wbr>com/mailman/mysubs</a><br>
 &gt; &gt;<br>
______________________________<wbr>_________________<br>
Perl-XML mailing list<br>
<a href="mailto:Perl-XML@listserv.ActiveState.com">Perl-XML@listserv.ActiveState.<wbr>com</a><br>
 To unsubscribe: <a href="http://listserv.ActiveState.com/mailman/mysubs" \
rel="noreferrer" target="_blank">http://listserv.ActiveState.<wbr>com/mailman/mysubs</a><br>
 </blockquote></div><br></div>



_______________________________________________
Perl-XML mailing list
Perl-XML@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic