This is an exercise from AJAX and PHP: Building Responsive Web Applications. In this exercise, you write a PHP script that uses the PHP's DOM functions to create XML output that will be read by the client. PHP's DOM functionality is similar to JavaScript's DOM functionality, and its official documentation can be found at http://www.php.net/manual/en/ref.dom.php. The XML document you will create on the server will be almost the same as the XML document you saved as a static XML file in a previous exercise, but this time it will be generated dynamically:
<response>
<books>
<book>
<title>AJAX and PHP: Building Reponsive Web Applications</title>
<isbn>1-904811-82-5</isbn>
</book>
</books>
</response>
The complete AJAX and PHP tutorial features even more AJAX web development examples.
PHP developer? Learn PHP SEO (Search Engine Optimization) techniques. (ASP.NET SEO tutorial forthcoming)