<?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>kevinleary.net &#187; PHP</title> <atom:link href="http://www.kevinleary.net/blog/php/feed/" rel="self" type="application/rss+xml" /><link>http://www.kevinleary.net</link> <description>Portfolio &#38; blog of Kevin Leary, a Boston based WordPress CMS &#38; jQuery designer &#38; developer.</description> <lastBuildDate>Tue, 24 Aug 2010 17:54:40 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Check out Fresh Tilled Soil: Web Resources!</title><link>http://www.kevinleary.net/check-out-fresh-tilled-soil-web-resources/</link> <comments>http://www.kevinleary.net/check-out-fresh-tilled-soil-web-resources/#comments</comments> <pubDate>Wed, 04 Feb 2009 02:42:30 +0000</pubDate> <dc:creator>kevin</dc:creator> <category><![CDATA[Abstractions]]></category> <category><![CDATA[Art Inspiration]]></category> <category><![CDATA[Branding]]></category> <category><![CDATA[Content]]></category> <category><![CDATA[Flash]]></category> <category><![CDATA[Life]]></category> <category><![CDATA[Mobile]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Process]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[SEM / SEO]]></category> <category><![CDATA[User Interface]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[XML]]></category> <category><![CDATA[fresh tilled soil]]></category> <category><![CDATA[moving]]></category> <category><![CDATA[web resources]]></category><guid isPermaLink="false">http://www.kevinleary.net/blog/check-out-fresh-tilled-soil-web-resources/</guid> <description><![CDATA[Some people may have noticed that the frequency of my articles has died down a bit over the past month or so. I’ve been adding posts at a new location now for work. Many of the topics are the same, if your interested in checking it out head on over to Fresh Tilled Soil: Web [...]]]></description> <content:encoded><![CDATA[<p>Some people may have noticed that the frequency of my articles has died down a bit over the past month or so. I’ve been adding posts at a new location now for work.</p><p>Many of the topics are the same, if your interested in checking it out head on over to <a href="http://www.freshtilledsoil.com/web-resources/" onclick="pageTracker._trackPageview('/outgoing/www.freshtilledsoil.com/web-resources/?referer=');">Fresh Tilled Soil: Web Resources</a> and take a look.</p><p>I’ll continue to post on kevinleary.net as well, but not as often. I’d say that I plan to average 2–3 new posts per month.</p><p>Thanks again for reading!</p> ]]></content:encoded> <wfw:commentRss>http://www.kevinleary.net/check-out-fresh-tilled-soil-web-resources/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Highlighting The Current Page With CSS &amp; jQuery</title><link>http://www.kevinleary.net/highlighting-the-current-page-with-php-jquery/</link> <comments>http://www.kevinleary.net/highlighting-the-current-page-with-php-jquery/#comments</comments> <pubDate>Wed, 10 Sep 2008 21:47:57 +0000</pubDate> <dc:creator>kevin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[User Interface]]></category> <category><![CDATA[current]]></category> <category><![CDATA[current navigation]]></category> <category><![CDATA[highlight current page]]></category> <category><![CDATA[jquery current links]]></category><guid isPermaLink="false">http://www.kevinleary.net/blog/?p=92</guid> <description><![CDATA[Here’s a common web development scenario: How do we highlight the current page in a navigation seamlessly and dynamically? The answer is jQuery. See a Live Demo My recipe for this common scenario involves a mixture of CSS and JavaScript with a dash of jQuery. XHTML &#60;ul id=&#34;navigation&#34;&#62; &#60;li&#62;&#60;a href=&#34;about-us.html&#34;&#62;about us&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;our-products.html&#34;&#62;our products&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a [...]]]></description> <content:encoded><![CDATA[<p class="introduction">Here’s a common web development scenario: How do we highlight the current page in a navigation seamlessly and dynamically? <strong>The answer is jQuery.</strong></p><h3><a href="/wp-samples/jquery-current-navigation/" target="_blank">See a Live Demo</a></h3><p>My recipe for this common scenario involves a mixture of CSS and JavaScript with a dash of jQuery.</p><h3>XHTML</h3><div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;">&lt;ul id=&quot;navigation&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;about-us.html&quot;&gt;about us&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;our-products.html&quot;&gt;our products&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;blog.html&quot;&gt;blog&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;active&quot; href=&quot;login.html&quot;&gt;login&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;active&quot; href=&quot;contact.html&quot;&gt;contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div><p><span id="more-92"></span></p><h3>JavaScript / jQuery</h3><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$page <span style="color: #339933;">=</span> jQuery.<span style="color: #660066;">url</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;file&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$page<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$page <span style="color: #339933;">=</span> <span style="color: #3366CC;">'index.html'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#navigation li a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> $href <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>$href <span style="color: #339933;">==</span> $page<span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>$href <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'on'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'on'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div><h3>Usage</h3><p>You’ll need a copy of <a href="http://jquery.com/" onclick="pageTracker._trackPageview('/outgoing/jquery.com/?referer=');">jQuery</a>, along with a copy of the <a href="http://projects.allmarkedup.com/jquery_url_parser/" onclick="pageTracker._trackPageview('/outgoing/projects.allmarkedup.com/jquery_url_parser/?referer=');">jQuery URL Parser</a> plugin.</p><p>After you include jQuery, and the URL Parser add the JavaScript snippet above to the &lt;head&gt; section of your document.</p><h3>How it works</h3><p>What we do here is simple, we grab the current name of the page, for example <strong>about.html</strong>. Then we check out <strong>ul.navigation &lt;ul&gt;</strong> to see if any of the anchors contain an href attribute with that value. If any of the links are a match we flag the parent of the anchor with a CSS class. In this case I’ve chosen <strong>current</strong> to keep things self explanatory.</p><h3>Notes</h3><p>In this case I chose to add the <strong>“current”</strong> class to the &lt;li&gt; rather than to the anchor. Usually I will create a navigation using CSS sprite techniques, and this allows me greater control over the presentation of that element. This can come in handy for rounded corners or tabs.</p><h3>Resources</h3><ul><li><a rel="nofollow" href="http://www.amazon.com/gp/product/1847192505?ie=UTF8&amp;tag=kn08-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1847192505kn08-20"  onclick="pageTracker._trackPageview('/outgoing/www.amazon.com/gp/product/1847192505?ie=UTF8_amp_tag=kn08-20_amp_linkCode=as2_amp_camp=1789_amp_creative=9325_amp_creativeASIN=1847192505kn08-20&amp;referer=');">Learning  jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=kn08-20&amp;l=as2&amp;o=1&amp;a=1847192505" border="0" alt=" Highlighting The Current Page With CSS & jQuery" width="1" height="1" title="Highlighting The Current Page With CSS & jQuery" /></li><li><a rel="nofollow" href="http://www.amazon.com/gp/product/1933988355?ie=UTF8&amp;tag=kn08-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1933988355kn08-20"  onclick="pageTracker._trackPageview('/outgoing/www.amazon.com/gp/product/1933988355?ie=UTF8_amp_tag=kn08-20_amp_linkCode=as2_amp_camp=1789_amp_creative=9325_amp_creativeASIN=1933988355kn08-20&amp;referer=');">jQuery in Action</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=kn08-20&amp;l=as2&amp;o=1&amp;a=1933988355" border="0" alt=" Highlighting The Current Page With CSS & jQuery" width="1" height="1" title="Highlighting The Current Page With CSS & jQuery" /></li><li><a title="Keeping Navigation Current With PHP by Jason Pearce" rel="nofollow" href="http://www.alistapart.com/articles/keepingcurrent" onclick="pageTracker._trackPageview('/outgoing/www.alistapart.com/articles/keepingcurrent?referer=');">Keeping Navigation Current With PHP</a> at <strong>A List Apart</strong></li><li><a rel="nofollow" href="http://www.amazon.com/gp/product/1847193811?ie=UTF8&amp;tag=kn08-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1847193811kn08-20"  onclick="pageTracker._trackPageview('/outgoing/www.amazon.com/gp/product/1847193811?ie=UTF8_amp_tag=kn08-20_amp_linkCode=as2_amp_camp=1789_amp_creative=9325_amp_creativeASIN=1847193811kn08-20&amp;referer=');">jQuery Reference Guide</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=kn08-20&amp;l=as2&amp;o=1&amp;a=1847193811" border="0" alt=" Highlighting The Current Page With CSS & jQuery" width="1" height="1" title="Highlighting The Current Page With CSS & jQuery" /></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.kevinleary.net/highlighting-the-current-page-with-php-jquery/feed/</wfw:commentRss> <slash:comments>64</slash:comments> </item> <item><title>True Seperation of Presentation &amp; Content with XML</title><link>http://www.kevinleary.net/true-seperation-of-presentation-content-with-xml/</link> <comments>http://www.kevinleary.net/true-seperation-of-presentation-content-with-xml/#comments</comments> <pubDate>Wed, 27 Aug 2008 02:23:25 +0000</pubDate> <dc:creator>kevin</dc:creator> <category><![CDATA[Content]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[XML]]></category> <category><![CDATA[content with xml]]></category> <category><![CDATA[content with xml kevin leary]]></category> <category><![CDATA[file]]></category> <category><![CDATA[Flash]]></category> <category><![CDATA[parse]]></category> <category><![CDATA[parser xml php]]></category> <category><![CDATA[parsing]]></category> <category><![CDATA[php5]]></category> <category><![CDATA[problem with this approach]]></category> <category><![CDATA[professional world]]></category> <category><![CDATA[re-usable]]></category> <category><![CDATA[semantic markup]]></category> <category><![CDATA[simplexml]]></category> <category><![CDATA[standards books]]></category> <category><![CDATA[tabular data]]></category> <category><![CDATA[usable code]]></category> <category><![CDATA[xhtml]]></category> <category><![CDATA[xml file]]></category> <category><![CDATA[xml with php]]></category><guid isPermaLink="false">http://www.kevinleary.net/blog/?p=34</guid> <description><![CDATA[Web standards books praise the idea of separating presentation from content. Unfortunately doing so is harder said than done in the professional world. When I begin working on a re-design I usually find myself spending countless hours re-formatting content, so what’s the point? If a client wants specific information laid out as an unordered list [...]]]></description> <content:encoded><![CDATA[<p class="introduction">Web standards books praise the idea of separating presentation from content. Unfortunately doing so is harder said than done in the professional world. When I begin working on a re-design I usually find myself spending countless hours re-formatting content, so what’s the point? If a client wants specific information laid out as an unordered list (or outline) one day and tabular data the next you’ll find yourself rebuilding the pages structure.</p><p>The best solution to this ongoing probably is to utilize XML to describe the content as best as possible. The one problem with this approach is that parsing that XML into usable code is usually a big pain in the ass. With PHP5’s implementation of the <strong>SimpleXML</strong> object parsing XML is finally as simple as it should be.</p><p><span id="more-34"></span></p><p>This is the best way to handle web content in my opinion. The advantages as I see them are:</p><ul><li>Store your content in one central location, even it is used in multiple places throughout a site</li><li>Write your content once using the most semantic markup of all, XML</li><li>Loop through tags to make styling repeated content a breeze (e.g. Press Releases page)</li><li>Use your content with different technologies. Create RSS feeds, supply it to other domains or use it with Flash</li></ul><h3>Using the SimpleXML object</h3><p>Let’s get our hands dirty and see how to parse an XML file with SimpleXML.</p><h3>XML</h3><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;press<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;article<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;date<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>August 26<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/date<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>2008<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>pdf/consumer-brochure.pdf<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/link<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>New press release!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/article<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/press<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div><h3>PHP</h3><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000088;">$press</span> <span style="color: #339933;">=</span> <span style="color: #990000;">simpleXML_load_file</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;press.xml&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$press</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$articles</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;article&quot;&gt;
	&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$articles</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$articles</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
	&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$articles</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;p class=&quot;date&quot;&gt;&lt;strong&gt;Published&lt;/strong&gt; <span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$articles</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">date</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>, <span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$articles</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">year</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><h3>XHTML (generated by SimpleXML)</h3><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="xhtml" style="font-family:monospace;">&lt;div class=&quot;article&quot;&gt;
	&lt;h2&gt;&lt;a href=&quot;pdf/consumer-brochure.pdf&quot;&gt;New press release!&lt;/a&gt;&lt;/h2&gt;
	&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...&lt;/p&gt;
	&lt;p class=&quot;date&quot;&gt;&lt;strong&gt;Published&lt;/strong&gt; August 26, 2008&lt;/p&gt;
&lt;/div&gt;</pre></td></tr></table></div><h3>Download source</h3><p><a href='http://www.kevinleary.net/wp-content/uploads/2008/08/simplexml.zip'>Download the SimpleXML Source Code</a> for the example above.</p><h3>Recommended Reading</h3><p>I was  introduced to the SimpleXML object while browsing <strong><a rel="nofollow" href="http://www.amazon.com/gp/product/1590595092?ie=UTF8&#038;tag=kn08-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1590595092kn08-20"  target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.amazon.com/gp/product/1590595092?ie=UTF8_038_tag=kn08-20_038_linkCode=as2_038_camp=1789_038_creative=9325_038_creativeASIN=1590595092kn08-20&amp;referer=');">PHP 5 Recipes: A Problem-Solution Approach</a><img src="http://www.assoc-amazon.com/e/ir?t=kn08-20&#038;l=as2&#038;o=1&#038;a=1590595092" width="1" height="1" border="0" alt=" True Seperation of Presentation & Content with XML" style="border:none !important; margin:0px !important;" title="True Seperation of Presentation & Content with XML" /></strong>. I would recommend this book to professional developers looking for a great desk reference resource. As best put by the author, <em>“This book is a source of instant solutions, including countless pieces of useful code that you can just copy and paste into your own applications, giving you answers fast and saving you hours of coding time.”</em> That said, it’s big, long, and definitely not something you sit down and actually read. It provides a well documented reference of PHP 5 that includes some of the newer additions such as SimpleXML.</p><h3>Resources</h3><ul><li><a href="http://www.onlamp.com/pub/a/php/2004/01/15/simplexml.html" title="" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.onlamp.com/pub/a/php/2004/01/15/simplexml.html?referer=');">ONLamp.com — Using PHP5’s SimpleXML object</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.kevinleary.net/true-seperation-of-presentation-content-with-xml/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>