You are here: newbie: php & xml « PHP Programming Language « IT news, forums, messages
newbie: php & xml

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация