<?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>Wed, 22 May 2013 22:56:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: Guidelines for generating XML]]></title>
      <guid>http://www.phpdeveloper.org/news/14798</guid>
      <link>http://www.phpdeveloper.org/news/14798</link>
      <description><![CDATA[<p>
On DZone.com there's a recent post from <i>Evert Pot</i> talking about some <a href="http://java.dzone.com/news/guidelines-generating-xml">guidelines for generating XML</a> including a brief PHP example.
</p>
<blockquote>
Over the last little while I've come across quite a few XML feed generators written in PHP, with varying degrees of 'correctness'. Even though generating XML should be very simple, there's still quite a bit of pitfalls I feel every PHP or (insert your language)-developer should know about.
</blockquote>
<p>His suggestions for better XML include:</p>
<ul>
<li>You are better off using an XML library (like <a href="http://php.net/xmlwriter">xmlwriter</a>)
<li>Understand Unicode
<li>CDATA is never a solution
<li>Be verbose
<li>Be careful with entities
</ul>]]></description>
      <pubDate>Thu, 15 Jul 2010 11:50:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: A Quick PHP XMLWriter Class Tutorial: XML & RSS]]></title>
      <guid>http://www.phpdeveloper.org/news/11765</guid>
      <link>http://www.phpdeveloper.org/news/11765</link>
      <description><![CDATA[<p>
The PHPBuilder.com has <a href="http://www.phpbuilder.com/columns/iceomnia_20090116.php3"a quick tutorial</a> posted today looking to introduce you to a powerful XML creation tool in PHP5 installations - <a href="http://php.net/xmlwriter">XMLWriter</a>.
</p>
<p>
They jump right in and show it in action by creating a simple RSS document with one element inside. A call to the flush() method on your XMLWriter object is all it takes to output the XML. 
</p>
<p>
They also change things up and bit and swap out the procedural code for a more object-oriented approach with a constructor that sets up the object and adds in some of the common RSS information. Their addItem() method is called to add in a sample item (in this case, an entry for a CD player product) and _endRSS() closes things off and runs that flush() to send it all back out.
</p>
<p>
You can find out more about XMLWriter (and its sister, <a href="http://us3.php.net/manual/en/book.xmlreader.php">XMLReader</a>) in <a href="http://us3.php.net/xmlwriter">the PHP manual</a>.
</p>]]></description>
      <pubDate>Mon, 19 Jan 2009 11:19:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: XML and PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/8369</guid>
      <link>http://www.phpdeveloper.org/news/8369</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2387-XML-and-PHP-5">a new tutorial</a> posted looking at PHP5 and the new XML tools that it has to offer - as broken up into categories:
</p>
<ul>
<li>the <a href="http://us.php.net/dom">DOM functionality</a> (replacing DOM XML, ext/dom)
<li><a href="http://us.php.net/manual/en/ref.simplexml.php">SimpleXML</a>
<li><a href="http://us.php.net/manual/en/ref.xmlreader.php">XMLReader</a> (replacing the ext/xml extension)
<li><a href="http://us.php.net/manual/en/ref.xmlwriter.php">XMLWriter</a>
<li><a href="http://us.php.net/manual/en/ref.xsl.php">XSL</a>
</ul>
<blockquote>
Things are a bit different using XML in PHP 5. In a similar scenario, you could use one of the new native extensions, like DOM or SimpleXML, to manipulate the XML data tree. This tree can then be passed directly to and used by the XSL extension without incurring any additional overhead. There is no serialization nor copying involved; ext/xsl is able to work directly with the XML tree it is given, resulting in a significant improvement in use of system resources as compared to coding a similar task in PHP 4. So now that you have an idea why XML support got a face lift, you might like to know about the different tools available to you.
</blockquote>]]></description>
      <pubDate>Wed, 01 Aug 2007 10:13:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Livedocs XMLWriter Entry Updated]]></title>
      <guid>http://www.phpdeveloper.org/news/7024</guid>
      <link>http://www.phpdeveloper.org/news/7024</link>
      <description><![CDATA[<p>
As <a href="http://blog.thepimp.net/index.php/post/2007/01/03/XMLWriter-updated-docs">mentioned briefly</a> by <i>Pierre-Alain Joye</i>, the documentation (on the Livedocs website) has been updated for the XMLWriter package.
</p>
<blockquote>
<p>
This is the XMLWriter extension. It wraps the libxml xmlWriter API.
</p>
<p>
This extension represents a writer that provides a non-cached, forward-only means of generating streams or files containing XML data.
This extension can be used in an object oriented style or a procedural one. Every method documented describes the alternative procedural call. 
</p>
</blockquote>
<p>
The updated documentation <a href="http://livedocs.php.net/livedocs/en/ref.xmlwriter.php">cn be found here</a>.
</p>]]></description>
      <pubDate>Wed, 03 Jan 2007 16:55:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre's Blog: XMLWriter in PHP 5.1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/4455</guid>
      <link>http://www.phpdeveloper.org/news/4455</link>
      <description><![CDATA[From <i>Pierre</i> today, there's <a href="http://blog.thepimp.net/index.php/2005/12/07/27-xmlwriter-in-php-512">this quick post</a> concerning the inclusion of XMLWriter in PHP 5.1.2.
<p>
<quote>
<i>
XMLWriter is finally bundled in php5. It will available and enabled by default in the next PHP release (5.1.2).
<p>
With <a href="http://pecl.php.net/package/xmlwriter">XMLReader</a>, <a href="http://pecl.php.net/package/xmlwriter">XMLWriter</a> is a really nice addition to the xml extensions.
</i>
</quote>
<p>
The <a href="http://pecl.php.net/package/xmlwriter">XMLWriter</a> extension provides <i>fast, non-cached, forward-only means of generating streams or files containing XML data</i>. ]]></description>
      <pubDate>Wed, 07 Dec 2005 07:35:02 -0600</pubDate>
    </item>
  </channel>
</rss>
