Dynamic XML document construction with the PHP DOM
When working with XML-based applications, developers often find themselves facing the requirement to generate XML-encoded data structures on the fly. Although this task might seem intimidating, it's actually quite simple when one takes into account PHP's sophisticated DOM API for dynamic node construction and manipulation. This tutorial download introduces you to the main functions in this API, showing you how to programmatically generate a complete well-formed XML document from scratch and save it to disk.
This download is also available as a TechRepublic article.