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.
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (51 votes). Check out past polls.