in reply to how to include xml contents in another xml file
You can read your template file with XML::Simple, then add elements to the resulting data structure and, finally, create a new xml file from the combined contents, again with XML::Simple.
An Englishman in New York
An American Werewolf in London
An American in Paris
The Innocents Abroad
An Idiot Abroad
Robinson Crusoe on Mars
A Connecticut_Yankee in King Arthur's Court
There and Back Again
Travels into Several Remote Nations of the World
Results (81 votes). Check out past polls.