Cant echo SimpleXMLElement propeties
Im new to using SimpleXMLElement and its driving me up the wall! I am using cUrl to access an API, and I have the returned XML loaded into a SimpleXMLElement ready to be output. The xml returned looks like this:
http://img402.imageshack.us/img402/1493/xmlh.jpg and is structured thus:
I can do a print_r on it no problem e.g. print_r($responseXml->HotProducts->Product) which works fine. But if I try to loop through and echo values e.g. 'keywords', 'CatagoryName' etc for each product object I get nothing on the screen whatsoever.
This is driving me up the wall because im used to working with objects and I cant see whats going wrong.
Any help much appreciated!!