<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get XML Data into Magento via the Magento API</title>
	<atom:link href="http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/</link>
	<description>E-commerce, Internet Marketing, Design and Everything Else</description>
	<lastBuildDate>Tue, 09 Feb 2010 16:03:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nathanial Meleo</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-101</link>
		<dc:creator>Nathanial Meleo</dc:creator>
		<pubDate>Tue, 09 Feb 2010 16:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-101</guid>
		<description>yea nice Work</description>
		<content:encoded><![CDATA[<p>yea nice Work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Wilhelm</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-66</link>
		<dc:creator>Brian Wilhelm</dc:creator>
		<pubDate>Wed, 20 Jan 2010 02:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-66</guid>
		<description>Hi Paul,

Unfortunately I can&#039;t make much out of feed example you posted, so if you can repost the XML that would be helpful.

As far as where to put the files, I think you can put them anywhere so long at the path to the mage.php file is correct on line 2 of the processupdates.php, but to be safe I would put them in the root folder of your magento install.

In regards to Cron Jobs, you can read more about them &lt;a href=&quot;http://www.webmasters-central.com/article-blog/tutorials/cron-tutorial-managing-cron-tab-or-cron-job-is-easy/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Unfortunately I can&#8217;t make much out of feed example you posted, so if you can repost the XML that would be helpful.</p>
<p>As far as where to put the files, I think you can put them anywhere so long at the path to the mage.php file is correct on line 2 of the processupdates.php, but to be safe I would put them in the root folder of your magento install.</p>
<p>In regards to Cron Jobs, you can read more about them <a href="http://www.webmasters-central.com/article-blog/tutorials/cron-tutorial-managing-cron-tab-or-cron-job-is-easy/" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-63</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 19 Jan 2010 23:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-63</guid>
		<description>Hi There,

Thank you for sharing this information, much appreciated.

My feed is like this please can you help?


19/01/2010 23:27:54
	2.0
	
		
			&lt;code&gt;N0507&lt;/code&gt;
			example 1
			6
			In Stock
		

 Please can you tell me where to replace these files and how to setup the cron job.

Many Thanks

Paul</description>
		<content:encoded><![CDATA[<p>Hi There,</p>
<p>Thank you for sharing this information, much appreciated.</p>
<p>My feed is like this please can you help?</p>
<p>19/01/2010 23:27:54<br />
	2.0</p>
<p>			<code>N0507</code><br />
			example 1<br />
			6<br />
			In Stock</p>
<p> Please can you tell me where to replace these files and how to setup the cron job.</p>
<p>Many Thanks</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Wilhelm</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-61</link>
		<dc:creator>Brian Wilhelm</dc:creator>
		<pubDate>Sun, 17 Jan 2010 05:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-61</guid>
		<description>Hi Daniel,

W3C have a pretty good primer on Xpath &lt;a href=&quot;http://www.w3schools.com/XPath/xpath_syntax.asp&quot; rel=&quot;nofollow&quot;&gt;here.&lt;/a&gt;

I&#039;d say its just a matter of using the right syntax to access the value you are looking for.

In regards to the T_VARIABLE error, that usually happens when you have left out a closing curly bracket in your code.</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>W3C have a pretty good primer on Xpath <a href="http://www.w3schools.com/XPath/xpath_syntax.asp" rel="nofollow">here.</a></p>
<p>I&#8217;d say its just a matter of using the right syntax to access the value you are looking for.</p>
<p>In regards to the T_VARIABLE error, that usually happens when you have left out a closing curly bracket in your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-59</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 16 Jan 2010 18:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-59</guid>
		<description>Keep getting an  PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/domain.com/public_html/processupdates.php on line 62

Also when i use the code
$res = $feed_xml-&gt;xpath(&quot;//product[@sku=&#039;$mysku&#039;]&quot;);

Any hints?</description>
		<content:encoded><![CDATA[<p>Keep getting an  PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/domain.com/public_html/processupdates.php on line 62</p>
<p>Also when i use the code<br />
$res = $feed_xml-&gt;xpath(&#8220;//product[@sku='$mysku']&#8220;);</p>
<p>Any hints?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-57</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 16 Jan 2010 14:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-57</guid>
		<description>I got some problems getting this to work...  I can easily fetch the xml file from my supplier, but I cant seem to process the data. I have added a api / rule and put in the info, i also updated the file with all info, but when i try to call the file in the browser, i just get a blank screen. 

Can you help? 

I my xml file, the SKU it is not called product sku, but instead Product_Code, 
So is it right that I need to use following code : 
$res = $feed_xml-&gt;xpath(&quot;Product_Code=&#039;$mysku&#039;&quot;);</description>
		<content:encoded><![CDATA[<p>I got some problems getting this to work&#8230;  I can easily fetch the xml file from my supplier, but I cant seem to process the data. I have added a api / rule and put in the info, i also updated the file with all info, but when i try to call the file in the browser, i just get a blank screen. </p>
<p>Can you help? </p>
<p>I my xml file, the SKU it is not called product sku, but instead Product_Code,<br />
So is it right that I need to use following code :<br />
$res = $feed_xml->xpath(&#8220;Product_Code=&#8217;$mysku&#8217;&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sprice</title>
		<link>http://www.bwilhelm.com/2010/01/05/get-xml-data-into-magento-via-magento-api/comment-page-1/#comment-42</link>
		<dc:creator>Sprice</dc:creator>
		<pubDate>Tue, 05 Jan 2010 21:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwilhelm.com/?p=63#comment-42</guid>
		<description>Thanks this is just what I need.  So far I&#039;ve only done the import but it works perfectly.

Keep up the good work!</description>
		<content:encoded><![CDATA[<p>Thanks this is just what I need.  So far I&#8217;ve only done the import but it works perfectly.</p>
<p>Keep up the good work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
