Re: [PHP] SimpleXML and xpath woes

2005-03-21 Thread Richard Lynch
On Wed, March 16, 2005 9:39 am, Simon Turvey said: > (Apologies for the larger than normal wrapping - there are some long > lines) > > I'm playing with SimpleXML for reading REST responses from Amazon Web > Services. > Having successfuly read the response to my request I'd like to perform an > xpat

RE: [PHP] simplexml and xpath

2004-09-22 Thread Matthew Sims
> So I've just recently fallen in love with simplexml. But from what I've > read, is it true that xpath doesn't really work properly? > > I'm using an XML file that has a section like this: > > > Title > Link > Desc Subject > 2004-09-20T18:15:00+00:00 > > > My sample of my PHP code is: > > $libr

RE: [PHP] simplexml and xpath

2004-09-21 Thread Yoed Anis
For this simple query simple do a call to $item->date to get your time. If the query is more complex in reality, do a foreach using xpath. See the example on Xpath at www.php.net/simplexml Yoed -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2