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
> 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
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
3 matches
Mail list logo