in reply to Generating XML from a template

The HTML::Template and Template::Toolkit modules can both be used to create XML templates and populate them with hashes of values.