<?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 19:16:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Davey Shafik's Blog: ext/dom and libxml2 charset and entities behaviors]]></title>
      <guid>http://www.phpdeveloper.org/news/13025</guid>
      <link>http://www.phpdeveloper.org/news/13025</link>
      <description><![CDATA[<p>
<i>Davey Shafik</i> <a href="http://daveyshafik.com/archives/705-extdom-and-libxml2-charset-and-entities-behaviors.html">points out</a> a second option for the <a href="http://us2.php.net/manual/en/domdocument.savexml.php">saveXML function</a> of the DOM functionality in PHP - an option to restrict the use of "empty tags".
</p>
<blockquote>
This argument currently only supports one value which is the constant LIBXML_NOEMPTYTAGS. This option makes sure that you do not end up with &lt;tag /> but instead, &lt;tag>&lt;/tag>. This can make things easier if you need more predictable text to perform other changes on later.
</blockquote>
<p>
He also noticed some other changes that the option made in his XML documents, specifically a size increase issue with spaces. Code samples are included to show these differences.
</p>]]></description>
      <pubDate>Tue, 11 Aug 2009 10:23:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: Update to libxml2 in PHP - progress hath been acquired]]></title>
      <guid>http://www.phpdeveloper.org/news/7988</guid>
      <link>http://www.phpdeveloper.org/news/7988</link>
      <description><![CDATA[<p>
Related to an <a href="http://greg.chiaraquartet.net/archives/176-W3C-SchemaRelax-NGDTD-seem-to-be-totally-useless-in-PHP,-help.html">issue from a previous post</a>, <i>Greg Beaver</i> has <a href="http://greg.chiaraquartet.net/archives/177-Update-to-libxml2-in-PHP-progress-hath-been-acquired.html">posted a solution</a> to his Relax NG schema problem in PHP.
</p>
<blockquote>
Shortly after my last blog post, I got a very helpful email from Rob Richards, who offered to help me with my trials and tribulations. He took a quick look at the schema for package.xml, and a sample package.xml and was able to find two small tweaks to make parsing actually work (gasp). This changes everything. I am abandoning the creation of a relax NG schema in favor of the battle-tested xsd. The error messages for xsd validation are far clearer than the rng ones.
</blockquote>
<p>
The <a href="http://greg.chiaraquartet.net/archives/177-Update-to-libxml2-in-PHP-progress-hath-been-acquired.html">code included</a> shows how much simpler the error messages are with the XSD validation option versus the RNG ones.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2007 11:45:00 -0500</pubDate>
    </item>
  </channel>
</rss>
