You have a number of options. For instance you load the file into a datastructure using XML::Simple then fiddle around with the structure and save it again, you can use XML::Twig to load and manipulate the file and save it again, or you could use XSLT to transform the document without fiddling with the data in perl. The latter seems to fir your requirement for a template better.
/J\
In reply to Re: perl xml data copy
by gellyfish
in thread perl xml data copy
by johnph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |