in reply to Generating XML documents based on a schema
I suggest XML::AutoWriter or Petal (with its replace and omit-tag features), depending on how complex the necessary logic to generate the document actually is.
Makeshifts last the longest.
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (192 votes). Check out past polls.