The reason for using the data structure for an input data source is that it simulates XML generation as one part of a multistep process. For example, the XML document may get generated as a result of previous processing by the same application. Which approach was easier? Can you see the benefit of the XML::Writer module in a long, complicated XML document? The generated XML output file should conform to the following format: <email_list> <name first="" last="" email=""/> <name first="" last="" email=""/> </email_list> Make sure you include a valid XML declaration with an encoding of your choice. For suggested solutions to this exercise, be sure to check out the web site: http://www.xmlproj.com/book/chapter05. |