<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Andreas Hommel &#187; cake</title>
	<atom:link href="http://andreashommel.net/tag/cake/feed/" rel="self" type="application/rss+xml" />
	<link>http://andreashommel.net</link>
	<description></description>
	<lastBuildDate>Fri, 18 Mar 2011 09:11:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>XML-Import in CakePHP</title>
		<link>http://andreashommel.net/xml-import-in-cakephp/</link>
		<comments>http://andreashommel.net/xml-import-in-cakephp/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 09:00:59 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cake]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://new.andreashommel.net/?p=257</guid>
		<description><![CDATA[Für eine kleine eCommerce Anwendung die ich im Moment erstelle benötigte ich eine XML Import Funktion in CakePHP. Hier die einzelnen Schritte die notwendig sind um dies zu realisieren.]]></description>
			<content:encoded><![CDATA[<p>Für eine kleine eCommerce Anwendung die ich im Moment erstelle benötigte ich eine XML Import Funktion in <a title="CakePHP" href="http://cakephp.org">CakePHP</a>. Hier die einzelnen Schritte die notwendig sind um dies zu realisieren.</p>
<p>Folgender Code importiert die XML Daten in einen Array:</p>
<pre><code>function import() {
  App::import('Xml');
  $file = "pfad/zur/xml/datei.xml";
  $parsed_xml =&amp; new XML($file);
  $parsed_xml = Set::reverse($parsed_xml);
  debug($parsed_xml);
}</code></pre>
<p>Tja das wars schon! Der Dank gilt der CakePHP eigenen <a title="XML Klasse" href="http://api.cakephp.org/class/xml">XML Klasse</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashommel.net/xml-import-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
