<?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, 11 May 2008 19:42:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MSBWare.com: XML to Array]]></title>
      <guid>http://www.phpdeveloper.org/news/9967</guid>
      <link>http://www.phpdeveloper.org/news/9967</link>
      <description><![CDATA[<p>
<i>Michael</i> has posted <a href="http://www.msbware.com/articles/scripts/xml_to_array.html">a simple script</a> today that takes in XML data and spits back out an array on the other side:
</p>
<blockquote>
The function takes the specified XML data (which must be in valid XML format) and converts into an array.  Any attributes in the XML elements are dropped an only the element values are placed in the array.
</blockquote>
<p>
<a href="http://www.msbware.com/articles/scripts/xml_to_array.html">The code</a> uses a combination of XPath, DOM, and regular expressions to parse the given XML content.
</p>]]></description>
      <pubDate>Mon, 14 Apr 2008 10:23:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Szorc's Blog: Using DTD's and Catalogs for XHTML Validation]]></title>
      <guid>http://www.phpdeveloper.org/news/9949</guid>
      <link>http://www.phpdeveloper.org/news/9949</link>
      <description><![CDATA[<p>
<i>Greg Szorc</i> shows how, in <a href="http://blog.case.edu/gps10/2008/04/06/using_dtds_and_catalogs_for_xhtml_validation">this entry</a> on his blog, to use DTDs and catalogs to validate your XHTML pages with a little help from PHP.
</p>
<blockquote>
This [validation from an external site like the W3C validator] approach is a good start, but it is far from ideal because it is based on an honor system of sorts. You often forget to validate each change you make and there is always some corner case that you forget. So, what can be done about it? Well, if you find yourself developing in PHP, you can employ the following solution.
</blockquote>
<p>
The code <a href="http://blog.case.edu/gps10/2008/04/06/using_dtds_and_catalogs_for_xhtml_validation">he includes</a> pulls in the XHTML content from your page (or the output of the framework's view layer) and pushes it into a DOMDocument that's build with the LIBXML_DTDLOAD and LIBXML_DTDATTR options.
</p>]]></description>
      <pubDate>Thu, 10 Apr 2008 11:29:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Parsing Child Nodes with the DOM XML extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9928</guid>
      <link>http://www.phpdeveloper.org/news/9928</link>
      <description><![CDATA[<p>
<i>Alejandro Gervasio</i> has finished up his series on DevShed looking at working with the DOM extension in PHP5 with <A href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/">this new article</a>, a look at parsing child nodes.
</p>
<blockquote>
In this last chapter of the series, I'm going to teach you how to handle the child nodes of an XML document by way of two simple methods, called hasChildNode() and removeChild() respectively. So let's not waste any more time in preliminaries and learn how to use them in a helpful way.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/1/">review</a> some of the concepts mentioned previously before moving ahead to the use of the <a href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/2/">hasChildNodes</a> and <a href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/3/">removeChild</a> methods to check for children and get rid of only certain ones.
</p>]]></description>
      <pubDate>Tue, 08 Apr 2008 09:47:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Accessing Attributes and Cloning Nodes with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9891</guid>
      <link>http://www.phpdeveloper.org/news/9891</link>
      <description><![CDATA[<p>
DevShed continues their series about working with XML in PHP's DOM extension with <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/">this new tutorial</a> posted today showing how to get at attributes for tags and cloning nodes from others.
</p>
<blockquote>
You've probably realized that the DOM XML library can be pretty useful when working with web documents. However, this extension includes some other methods, which can be utilized to parse attributes of a given XML string, as well as to clone nodes.
</blockquote>
<p>
They show how to use the <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/1/">getAttributes</a> method, <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/2/">hasAttribue</a> method and <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/3/">cloneNode</a> method to work with their XML examples.
</p>]]></description>
      <pubDate>Tue, 01 Apr 2008 15:11:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Handling HTML Strings and Files with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9856</guid>
      <link>http://www.phpdeveloper.org/news/9856</link>
      <description><![CDATA[<p>
On DevShed today, they <a href="http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/">continue their series</a> looking at working with XML in PHP with the DOM functionality with the fifth part of their series, a look at working with HTML strings and file data.
</p>
<blockquote>
Understanding how to use the methods and properties provided by this library requires a little effort from you, despite its fairly easy learning curve. [...] The DOM XML extension has plenty of options when it comes to moving portions of an XML document (or even the entire document) from one place to another. This is certainly a process that can be performed with minor hassles by utilizing the intuitive DOM API mentioned in the beginning.
</blockquote>
<p>
They show how to <a href="http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/1/">use loadHTML</a> to pull in the text from an HTML string and use <a href="http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/2/">loadHTMLFile</a> to pull it in from an external HTML file. Finally, they show how to write the data and whatever changes you might have made to it, back out to a file with <a href=http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/3/">saveHTMLFile</a>.
</p>]]></description>
      <pubDate>Wed, 26 Mar 2008 08:46:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Working with Multiple Document Nodes with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9818</guid>
      <link>http://www.phpdeveloper.org/news/9818</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Working-with-Multiple-Document-Nodes-with-the-DOM-XML-Extension-in-PHP-5/">fourth part</a> of their series looking at working with the DOM functionality of PHP5, this time with a focus on working with multiple document nodes inside of an XML document.
</p>
<blockquote>
It's time to learn a few other methods included with the DOM XML extension. Based upon this premise, in this fourth tutorial I'm going to show you how to get access to multiple nodes of an XML document, either for internal processing or simply for echoing to the browser.
</blockquote>
<p>
They show you how to <a href="http://www.devshed.com/c/a/PHP/Working-with-Multiple-Document-Nodes-with-the-DOM-XML-Extension-in-PHP-5/1/">grab the collection of nodes</a> to work with and how to grab data from an XML text file <a href="http://www.devshed.com/c/a/PHP/Working-with-Multiple-Document-Nodes-with-the-DOM-XML-Extension-in-PHP-5/2/">with load()</a> and <a href="http://www.devshed.com/c/a/PHP/Working-with-Multiple-Document-Nodes-with-the-DOM-XML-Extension-in-PHP-5/3/">loadXML()</a>.
</p>]]></description>
      <pubDate>Wed, 19 Mar 2008 07:59:49 -0500</pubDate>
    </item>
    <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[DevShed: A Quick Overview of the XML DOM Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9705</guid>
      <link>http://www.phpdeveloper.org/news/9705</link>
      <description><![CDATA[<p>
DevShed has started up a new tutorial series today with <a href="http://www.devshed.com/c/a/PHP/A-Quick-Overview-of-the-XML-DOM-Extension-in-PHP-5/">part one</a> of their overview of the DOM extension that's included with PHP5:
</p>
<blockquote>
Simply put, the DOM XML extension, as its name suggests, will permit you to work on XML documents by way of the DOM API. [...] In this article series I'll be discussing some of its most relevant methods and properties and accompanying all of these explanations with concise and instructive hands-on examples.
</blockquote>
<p>
They look at using the DOM to <a href="http://www.devshed.com/c/a/PHP/A-Quick-Overview-of-the-XML-DOM-Extension-in-PHP-5/1/">create new documents</a>, modify documents by <a href="http://www.devshed.com/c/a/PHP/A-Quick-Overview-of-the-XML-DOM-Extension-in-PHP-5/2/">adding additional nodes</a> and converting over a SimpleXML document to <a href="http://www.devshed.com/c/a/PHP/A-Quick-Overview-of-the-XML-DOM-Extension-in-PHP-5/3/">be manipulated</a>.
</p>]]></description>
      <pubDate>Tue, 26 Feb 2008 12:26:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Scraping Links With PHP  ]]></title>
      <guid>http://www.phpdeveloper.org/news/9414</guid>
      <link>http://www.phpdeveloper.org/news/9414</link>
      <description><![CDATA[<p>
The Developer Tutorials site has posted a new article <a href="http://www.developertutorials.com/tutorials/php/scraping-links-with-php-8-01-05/page1.html">covering the creation</a> of a small application that can help you scrape content from a remote page and pull it into your script.
</p>
<blockquote>
In this tutorial you will learn how to build a PHP script that <a href="http://en.wikipedia.org/wiki/Web_scraping">scrapes</a> links from any web page.
</blockquote>
<p>
You'll learn to use cURL, the DOM functions, XPath and a bit of MySQL to get the job done. It's nice to see that they also include <a href="http://www.developertutorials.com/tutorials/php/scraping-links-with-php-8-01-05/page9.html">a section</a> looking at one of the more touchy aspects of web page scraping - "is it legal?"
</p>]]></description>
      <pubDate>Mon, 14 Jan 2008 08:44:00 -0600</pubDate>
    </item>
  </channel>
</rss>
