Using XML with PHP 2

Often times, developers will come to a point where they have to use PHP to generate XML. Using PHP to generate XML isn’t exactly the funnest job, but it is a lot better than “hand generating” XML by string¬†concatenation. Note¬†you should never generate XML by string concatenation. It is buggy, prone to mistakes, less maintainable, ...