[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@zyp.org>
On Mon, Jun 6, 2011 at 11:18 PM, Christopher Cashell <topher-pm@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@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)
** *** ***** ******* *********** ************* *****************