Forum Moderators: coopster

Message Too Old, No Replies

extract y close from xml

         

jackvull

7:57 am on Apr 1, 2011 (gmt 0)

10+ Year Member



I am trying to extract data from the Google finance API.
The following page gives the closing price for a stock on a certain date:

[google.com...]

How can I extract the Y_close element from the data?
I need to run this code once a day in a loop for 100 different stock symbols.

coopster

1:12 pm on Apr 1, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would use simpleXML [php.net].
There are examples that show you how to open and read from an XML feed.