Current location: Hot Scripts Forums » Programming Languages » PHP » Shopping.com XML Feed Parsing Help


Shopping.com XML Feed Parsing Help

Reply
  #1 (permalink)  
Old 03-29-05, 07:11 PM
angmi90 angmi90 is offline
Newbie Coder
 
Join Date: Mar 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Shopping.com XML Feed Parsing Help

I recently became an associate to Shopping.com and I'm having problems getting their XML feed to "turn into" HTML. The XML feed URL is http://api.shopping.com/scripts/GSIs...yword-23509199 and the page that I'm trying to get it to work on is here.

I want it to look just like this- http://www.thetechzone.com/?m=show&id=214 (The top price comparison box)

The attributes in the XML feed needed to make it look like the example-
<store-logo> <-- The Logo of the Store
<offer-price> <-- Produce Price
<store-rating-image> <-- The Store Rating Image

I have no idea what-so-ever on how to format this and get it to work and I've tried looking at tutorials online, but I just cannot understand it enough get it to work. If someone could just code one of the store's offers, I could figure out the rest to do the remaining four. I was told you do this via a .php file, if someone could just do the code for me for one of the price boxes or tell me how to do it, that would be appreciated. Thank you very very much and if you need anymore details or information, let me know. My AIM is windowsaz if you want to contact me there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-31-05, 09:29 AM
brien brien is offline
Newbie Coder
 
Join Date: Feb 2005
Location: San Francisco, CA
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
if you have PEAR installed you can use the pear XML_Parser package. that link will take you to the intro page, click on the example link to see how to use it. if you have questions after looking at the example and trying it out, let me know.

p.s. if you do not have PEAR installed, you should install it. i think it may be installed by default with php now though.
__________________
Reebosak Forums

Code a Day
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-31-05, 10:27 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
what's the PHP version you are using? if you are using PHP5, then SimpleXML will make your life alot easier
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-31-05, 10:57 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
no pear needed here. xml parser is bundled by default.
__________________
just an ignorant noob with moronic solution...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 04-04-05, 07:51 PM
Bjorn2404 Bjorn2404 is offline
New Member
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I'm trying to do the exact same thing and I can't get it either.

Anyone willing to help me out?

I'm used to just parsing headlines, but this feed is more detailed.... and it confuses me.

I tried using Domit but couldn't quite get it to work. I'd be willing to pay someone to set it up properly - I can't offer much because I'm a student but let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice parsing a html table to xml RossC0 JavaScript 3 03-22-05 03:10 PM
Restricting the results my xml feed returns cardesign PHP 2 01-02-05 04:59 AM
importing xml to phpnuke block larryflynt PHP 0 10-22-04 04:59 PM
Displaying images from a XML feed 101 PHP 1 07-30-04 11:10 PM
javascripting and XML Christoff JavaScript 1 06-23-04 06:44 AM


All times are GMT -5. The time now is 01:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.