<?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 02:58:36 -0500</pubDate>
    <ttl>30</ttl>
    <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>
