WebReference.com continues their simplified look at working with XML in PHP with this new tutorial about working with XML, databases and dynamic generation.
In the previous article, we looked at how to use XML with PHP and saw that it was not very different from writing normal PHP procedures to interact with an XML document. Because PHP treats an XML document like a normal file, it is easy to interact with it, even though its structure is complicated. For example to create a XML document, we use the common functions that PHP uses to create files.
Their examples show how to create a table in a MySQL database, insert some data and pull it back out to push into a dynamically created XML file. Explanation for all of the code is included.