I am trying to migrate to the Shopping.com API 3 but am having trouble parsing the XML.
I am using PHP and wanting to use simplexml_load_file() function.
This is not working.Code:<? $xml = simplexml_load_file("http://sandbox.api.shopping.com/publisher/3.0/rest/GeneralSearch?apiKey=authorized-key&trackingId=7000610&keyword=bosch%20wae28364"); echo $xml; foreach($GeneralSearchResponse->offer as $product) { } ?>
What is the best method of parsing this XML feed in PHP?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks