access namespace element/attribute in xml/atom document with simplexml

jav

New Member
I may have a simple question, I need to know how to get to nested namespace attributes/elements like below\[code\]<gf:marketValue> <gd:money amount='150990.0' currencyCode='USD'/> </gf:marketValue>\[/code\]this is from the google-apiAlso, I am now not sure wich one I should usethe url .../portfolioorportfolio/1/positionsto get the stockquotesSo, I may be wrong about this. (the xml above are from portfolio)\[code\]$response= simplexml_load_string($response);foreach($response->entry as $entry){$ns_gf = $entry->children('http://schemas.google.com/finance/2007');\[/code\]thanks in adv, Richard
 
Top