Also, particularly in this case, consider all of the technological alternatives that you have to do this very-common task, which is: transforming one XML document into another XML document. There are existing technologies called XSLT and XQuery which are specifically designed to do this ... without writing a computer-program in any language to do it.
Before you do much of anything else on this project, Google terms such as saxon, xalan, libxslt, and MSXML. Of course Perl has support for it, too, e.g. in XML::LibXSLT, but it may well be that to do this task you can ... well, maybe you ca do it in your web-browser, word processor, or spreadsheet!
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.