Posted by Jeff on 02/03/06 12:44
php 4.4.2
This code below generates a XML result which get stored in the $result
variable...
$result = '';
$url = "http://webservices.amazon.com/onca/xml";
$url = $url . '?Service=AWSECommerceService';
$url = $url . '&AWSAccessKeyId=xxxxxxxxxxxxxxxxxx';
$url = $url . '&Operation=ItemSearch';
$url = $url . '&Keywords=business';
$url = $url . '&SearchIndex=Books';
$url = $url . '&Sort=salesrank';
$url = $url . '&ResponseGroup=Medium';
$url = $url . '&Style=XML';
$result = file_get_contents($url);
Now I'm looking for a good/simple method to access the values in this xml
tree. I will only read (Not do any update)... But I'm not sure what's the
best way to do this....
I've run phpinfo() do get info about xml suppport at my ISP:
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6
XSLT support enabled
Backend Sablotron
Sablotron Version 1.0.1
I've tryed using domxml_open_mem, but I get this error:
Call to undefined function: domxml_open_mem()
What is causing this error?
Please, what is the best method to access these values in my xml data
($result)??
If you have some links to a php tutorial showing how to do this, then I
would be happy if you could send me the link
Jeff
[Back to original message]
|