in reply to Module for XML output

There is rarely a reason to not use XML::LibXML.

That said, if you're just writing XML, and the structure isn't especially complicated, it's often quite easy to do so with string concatenation, provided you have a function to entity-escape strings (and the numeric escape from HTML::Entities will do the trick just fine).