You are here:  » Problems parsing Affilate Windows datafeed

Support Forum



Problems parsing Affilate Windows datafeed

Submitted by chris_ray on Sun, 2008-02-24 23:41 in

MagicParser is great and works well on all the affiliate datafeeds I have tested, apart from Affiliate Window.

Both my script and your demo seem to hang when given the XML or URL to the xml datafeed. I notice that the XML in the datafeed contains child items. Are they causing the problem?

This is a portion of the feed causing problems:

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE products SYSTEM "http://www.affiliatewindow.com/DTD/affiliate/datafeed.1.2.dtd">
<products>
<merch mId="547" mName="Gameseek">
<prod awId="10737343"><pId>Blu-Ray1fetqj6qxme</pId><ean>5050629085914</ean><name>Hostel</name><desc>The hallowed tradition of the post-college European backpacking trip turns into an unimaginable nightmare for two unsuspecting American 20-somethings in Eli Roth&amp;#39;s (CABIN FEVER) sensational second outing. Paxton (Jay Her...</desc><cat><awCatId>550</awCatId><awCat>Blu-Ray</awCat><mCat>Blu-Ray Horror</mCat></cat><purl>http://www.gameseek.co.uk/pd/Blu-Ray1fetqj6qxme/</purl><mImage>http://www.gameseek.co.uk/images/products/hostel_bluray.jpg</mImage><awLink>http://www.awin1.com/pclick.php?p=10737343&amp;a=68200&amp;m=547</awLink><awThumb>http://images.productserve.com/thumb/547/10737343.jpg</awThumb><awImage>http://images.productserve.com/preview/547/10737343.jpg</awImage><delTime>Temporarily out</delTime><price curr="GBP"><display>11.97</display><search>11.97</search></price></prod>
<prod awId="10737351"><pId>Blu-Ray1kj0u0n10vs</pId><ean>5050629228311</ean><name>Talladega Nights - The Ballad Of Ricky Bobby</name><desc>Ricky Bobby--with his bleached-blonde wife cute sons Walker and Texas Ranger and dim sidekick Cal--has got it made. He is NASCAR&amp;#39;s most popular driver and nearly every aspect of his life is endorsed by a recognisable pro...</desc><cat><awCatId>550</awCatId><awCat>Blu-Ray</awCat><mCat>Blu-Ray Comedy</mCat></cat><purl>http://www.gameseek.co.uk/pd/Blu-Ray1kj0u0n10vs/</purl><mImage>http://www.gameseek.co.uk/images/products/talladega_nights_bluray.jpg</mImage><awLink>http://www.awin1.com/pclick.php?p=10737351&amp;a=68200&amp;m=547</awLink><awThumb>http://images.productserve.com/thumb/547/10737351.jpg</awThumb><awImage>http://images.productserve.com/preview/547/10737351.jpg</awImage><delTime>In stock</delTime><price curr="GBP"><display>11.97</display><search>11.97</search></price></prod>
</products>

I notice that there are blank lines in this feed, as you can see above. Could they be causing the problem?

I see someone experienced similar problems with this data feed in this thread and solved it with a script called MagicParserReplaceNull.php:

http://www.pricetapestry.com/node/453

Thanks
Chris

Submitted by support on Mon, 2008-02-25 09:22

Hi Chris,

I've just emailed you the alternative version of Magic Parser referred to in the other thread...

Cheers,
David.