[Omaha.pm] Beginning working with XML::Twig.

Dan Linder dan at linder.org
Tue Jun 7 08:46:26 PDT 2011


Excellent!   Thanks for the notes - I was able to read the XPath
documentation and found how to reference the "time=" attribute in each
<time_of_last_rate_dp> element:
    $xp->findvalue('/collection_status/check_starttime/@time');

Thanks,
DanL

2011/6/6 Christopher Cashell <topher-pm at zyp.org>

> On Mon, Jun 6, 2011 at 11:18 PM, Christopher Cashell <topher-pm at zyp.org>wrote:
>
>> # Now we'll try to pull back our instance times
>> my $nodeset =
>> $xp->find('/collection_status/instance/time_of_last_rate_dp');
>>
>
> Also, I just realized that this line could likely be safely
> shortened/simplified to:
>
> my $nodeset = $xp->find('//time_of_last_rate_dp');
>
> --
> Christopher
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>



-- 
***************** ************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20110607/e14cbaff/attachment.html>


More information about the Omaha-pm mailing list