<?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>Sun, 19 May 2013 20:13:22 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Easily empty GtkContainer/GtkWindow]]></title>
      <guid>http://www.phpdeveloper.org/news/7407</guid>
      <link>http://www.phpdeveloper.org/news/7407</link>
      <description><![CDATA[<p>
The PHP-GTK Community site has <a href="http://www.php-gtk.eu/code-snippets/empty-container">a quick new post</a> today showing how to create/empty out a GtkContainer or GtkWindow in your code.
</p>
<blockquote>
This function provides an easy way to empty a GtkWindow/GtkContainer. I use it when i need to refresh a part of my app by replacing some widgets with others. It can destroy or preserve the child widgets depending on your needs.
</blockquote>
<p>
They <a href="http://www.php-gtk.eu/code-snippets/empty-container">provide both</a> the code itself and a sample usage - a three line script that shows three ways to use it - empty out a container, empty out the container but keep its children intact, and how to use it in the event of a button click.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2007 08:42:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ben Ramsey's Blog: Add Children with SimpleXML]]></title>
      <guid>http://www.phpdeveloper.org/news/5355</guid>
      <link>http://www.phpdeveloper.org/news/5355</link>
      <description><![CDATA[<p>
In <a href="http://benramsey.com/archives/add-children-with-simplexml/">this new post</a> on <i>Ben Ramsey<i/>'s blog today, he shares his experiences with SimpleXML, mentioning specifically some of the undocumented functions that he's noticed.
</p>
<quote>
<i>
I was very excited today while glancing through the code in <a href="http://cvs.php.net/viewcvs.cgi/php-src/ext/simplexml/simplexml.c?view=markup">ext/simplexml/simplexml.c</a> to find some, as of yet, undocumented methods in PHP's <a href="http://www.php.net/SimpleXML">SimpleXMLElement</a> class. This discovery came after I've spent several hours over the last couple of nights banging my head against the desk to figure out a way to create a class that extends SimpleXMLElement and adds a new method for adding a child, which would have to use DOM in order to work-or so I thought.
</i>
</quote>
<p>
Of course, it's wasn't as <a href="http://benramsey.com/archives/add-children-with-simplexml/">easy as it seemed</a>, and <i>Ben</i> soon found some of the limitations of the SimpleXML library. Of course, he did manage to find a way to add new children to the document you're working with (something that normally would have required the intervention of the DOM functionality). Check out <a href="http://benramsey.com/archives/add-children-with-simplexml/">the post</a> for a code example.
</p>]]></description>
      <pubDate>Thu, 11 May 2006 20:03:57 -0500</pubDate>
    </item>
  </channel>
</rss>
