<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 13:30:09 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Inserting Comments and Accessing Nodes with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9779</guid>
      <link>http://www.phpdeveloper.org/news/9779</link>
      <description><![CDATA[<p>
DevShed continues their series looking at using the DOM extension in PHP5 to work with XML in your application. They've already looked at adding attributes and creating CDATA information in a new DOM document. <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/">This time</a> they build on that and also include new methods - appending comment nodes and getting at XML nodes by their IDs.
</p>
<blockquote>
I'm talking about the DOM XML extension, which allows you to handle XML documents by using the DOM API. Thus, if you're interested in learning how to put this extension to work for you quickly, look no further, because you've come to the right place. [...] In this third installment of the series, I'll be teaching you specifically how to append comment nodes to a given XML string and how to extract certain elements via their IDs.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/1/">review</a> the method to add attributes and CDATA to an XML document first. Then they cover the other two new topics - <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/2/">appending comment nodes</a> and grabbing nodes <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/3/">by their ID attribute</a>.
</p>]]></description>
      <pubDate>Tue, 11 Mar 2008 15:40:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Working with Attributes and CDATA Sections with the DOM XML Extension]]></title>
      <guid>http://www.phpdeveloper.org/news/9740</guid>
      <link>http://www.phpdeveloper.org/news/9740</link>
      <description><![CDATA[<p>
DevShed has <a href="http://www.devshed.com/c/a/PHP/Working-with-Attributes-and-CDATA-Sections-with-the-DOM-XML-Extension/">posted a new tutorial</a> today that continues their series looking at XML handling with PHP. This time it's a focus on attributes in a CDATA section with DOM.
</p>
<blockquote>
Since the DOM XML library comes equipped with many other methods that can be useful for adding custom attributes to the existing nodes of a given XML document, and creating new CDATA sections, among other things. 
</blockquote>
<p>
They start with <a href="http://www.devshed.com/c/a/PHP/Working-with-Attributes-and-CDATA-Sections-with-the-DOM-XML-Extension/1/">a review of the DOM functionality</a> to get you reacquainted. From there they move off into <a href="http://www.devshed.com/c/a/PHP/Working-with-Attributes-and-CDATA-Sections-with-the-DOM-XML-Extension/2/">the createAttribute</a> function and its use in the creation of CDATA elements in your XML.
</p>]]></description>
      <pubDate>Wed, 05 Mar 2008 18:29:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[David Coallier's Blog: Quick Tip - PHP, SimpleXML and CDATA]]></title>
      <guid>http://www.phpdeveloper.org/news/8982</guid>
      <link>http://www.phpdeveloper.org/news/8982</link>
      <description><![CDATA[<p>
<i>David Coallier</i> has <a href="http://blog.agoraproduction.com/index.php?/archives/53-Quick-Tip-PHP,-SimpleXML-and-CDATA.html">shared a quick tip</a> today about the PHP/SimpleXML/CDATA combination and the creation of auto-generated classes.
</p>
<blockquote>
I thought, hey I wonder how long it'd take in php.. so I was
working on it and I actually couldn't remember all those funny extra
parameters in simplexml_* so if you are googling and cannot find
something that says exactly what you want well here it is.
</blockquote>
<p>
His example includes two additional parameters in his simplexml_load_string call to handle the CDATA section correctly and make accessing the data inside the block just like getting at anything else in the object.
</p>
<p>
Note that <i>Rob Richards</i> has also commented on the post that this issue was corrected a while back and it shouldn't be needed anymore, but could effect older versions of the SimpleXML functionality.
</p>]]></description>
      <pubDate>Tue, 06 Nov 2007 11:16:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: Using SimpleXML To Parse RSS Feeds]]></title>
      <guid>http://www.phpdeveloper.org/news/7079</guid>
      <link>http://www.phpdeveloper.org/news/7079</link>
      <description><![CDATA[<p>
In PHP5, SimpleXML reigns as king when you just need a quick, light, easy way to pull in the data from an XML feed, especially RSS feeds. <i>Stuart Herbert</i> found this out and is <a href="http://blog.stuartherbert.com/php/2007/01/07/using-simplexml-to-parse-rss-feeds/">sharing his knowledge</a> in a new post to his blog showing how he worked with SimpleXML and namespaces to combine feeds into a "multi-blog".
</p>
<blockquote>
I can fake the multiblog by putting several different blogs on the site, and generating a homepage from the RSS feeds of the individual blogs. Should be simple enough, and it sounds like the perfect nail to hit with the SimpleXML hammer of PHP 5 :) Funnily enough, in work last week we were wondering whether you could use SimpleXML with XML namespaces (alas, we still use PHP 4 at work atm), so armed with the perfect excuse, I set to work.
</blockquote>
<p>
He <a href="http://blog.stuartherbert.com/php/2007/01/07/using-simplexml-to-parse-rss-feeds/">follows the path</a> he took - pulling in the feeds, using the information inside the SimpleXML element. The tricky part came in when he introduced the namespaces into the SimpleXML imports. He shows how to work with it rather than against it by using an array of namespace values and use the CDTA blocks in the results. The post wraps up with a full code listing of this handy little application.
</p>]]></description>
      <pubDate>Thu, 11 Jan 2007 09:48:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Builder.com: Dynamic XML document construction with the PHP DOM]]></title>
      <guid>http://www.phpdeveloper.org/news/6863</guid>
      <link>http://www.phpdeveloper.org/news/6863</link>
      <description><![CDATA[<p>
Builder.com as posted <a href="http://builder.com.com/5100-6371_14-6141415.html?part=rss&subj=bldr">a quick tutorial</a> on working with the DOM functionality in PHP to create a dynamic XML document (Doctype and all).
</p>
<blockquote>
Over the course of this article, I'll be introducing you to the main functions in this API, showing you how to programmatically generate a complete well-formed XML document from scratch and save it to disk.
</blockquote>
<p>
They <a href="http://builder.com.com/5100-6371_14-6141415.html?part=rss&subj=bldr">start off</a> with creating the Doctype declaration before actually adding the content into the file (elements and text nodes), adding some attributes to the nodes, putting CDATA blocks inside them, and pushing out the results on the other side to be saved to a local "order.xml" file.
</p>
<p>
You can also <a href="http://downloads.techrepublic.com.com/abstract.aspx?docid=272799">download this article</a> if you'd like to work with it (and its included PHP files) on your own.
</p>]]></description>
      <pubDate>Mon, 11 Dec 2006 11:05:00 -0600</pubDate>
    </item>
  </channel>
</rss>
