Hi,
I have some xml that I am processing using XML::Simple - my problem is that I am working with XML that needs two tags appending to the top and bottom of the document:
my original file:
what it should look like:
if i open the xml file for writing then ">>" will only append to the end of the file, so how can i stick the text to the start of the file as well?
any help greatly appreciated
I have some xml that I am processing using XML::Simple - my problem is that I am working with XML that needs two tags appending to the top and bottom of the document:
my original file:
Code:
<a tag>
</a tag>
<a tag>
</a tag>
what it should look like:
Code:
<master tag>
<a tag>
</a tag>
<a tag>
</a tag>
</master tag>
if i open the xml file for writing then ">>" will only append to the end of the file, so how can i stick the text to the start of the file as well?
any help greatly appreciated