PHP Object-Oriented Solutions
Chapter 8
This chaper covers generating XML from a database.
Exericses
- Testing the Database Classes
- The script tests the classes that connect to a database and displays results from it using
LimitIterator
. - Using
XMLWriter
to Generate the Output - The script uses procedural code to create an XML file. Because of write permissions, the script doesn't really work, so I've included the output of the script.
- Using the
Pos_XmlExporter
Class - The script is supposed to take the results from a query and put it into an XML document. The script is non-function because of server permissions.