You are previewing XML and PHP.
O'Reilly logo

Book Description

XML and PHP is designed to introduce PHP developers to the synergies that become visible when their favorite web-scripting language is combined with one of the most talked about technologies of recent times, XML. XML and PHP teaches PHP developers how to use PHP's XML functions to develop and maintain XML-based web applications and sites, and it demonstrates the power inherent in the XML/PHP combination. This book provides information on all hte major XML technologies supported in PHP, demonstrating how the XML/PHP combination can be used to deliver cutting-edge web applications through practical examples and real-world case studies. XML and PHP serves as both an implementation guide to the topic and a handy desktop reference for quick lookups-combining all the information that developers need into a single, focused package.

Table of Contents

  1. Copyright
  2. About the Author
  3. Acknowledgments
  4. Tell Us What You Think
  5. Introduction
  6. XML and PHP Basics
    1. XML
    2. PHP
    3. PHP and XML
    4. Summary
  7. PHP and the Simple API for XML (SAX)
    1. SAX
    2. PHP and SAX
    3. Handling SAX Events
    4. Controlling Parser Behavior
    5. Using Native Data Structures
    6. Handling Errors
    7. A Few Examples
    8. Summary
  8. PHP and the Document Object Model (DOM)
    1. Document Object Model (DOM)
    2. PHP and the DOM
    3. Traversing the DOM with PHP’s DOM Classes
    4. Traversing the DOM with PHP’s XPath Classes
    5. Manipulating DOM Trees
    6. DOM or SAX?
    7. Summary
  9. PHP and Extensible Stylesheet Language Transformations (XSLT)
    1. XSLT
    2. PHP and XSLT
    3. Handling Errors
    4. Logging Processor Messages
    5. Using Named Buffers
    6. Passing Parameters to an XSLT Stylesheet
    7. A Few Examples
    8. Summary
  10. PHP and Web Distributed Data eXchange (WDDX)
    1. WDDX
    2. PHP and WDDX
    3. A Few Examples
    4. Summary
  11. PHP and XML-Based Remote Procedure Calls (RPC)
    1. RPC
    2. XML-RPC
    3. SOAP
    4. PHP and RPC
    5. A Few Examples
    6. Summary
  12. PHP, XML, and Databases
    1. XML versus the Database
    2. Exporting Database Records To XML
    3. Importing XML Data into a Database
    4. Summary
  13. Open Source PHP/XML Alternatives
    1. Alternatives to PHP’s Native Functions:What You Should Know
    2. An Alternative PHP/DOM Implementation: eZXML
    3. An Alternative PHP/XPath Implementation: PHP.XPath
    4. An Alternative PHP/XML-RPC Implementation: XML-RPC for PHP
    5. An Alternative PHP/SOAP Implementation: SOAPx4
    6. Summary
  14. Case Studies
    1. Metabase
    2. patTemplate and patXMLRenderer
    3. Summary
  15. Recompiling PHP to Add XML Support
    1. Obtaining the Software
    2. Compiling and Installing the Software
    3. Testing the Software
  16. Open Source Licenses
    1. GNU General Public License (GPL)
    2. GNU Lesser General Public License (LGPL)
    3. Mozilla Public License - Version 1.1
    4. BSD License
  17. Glossary