in reply to
Displaying carriage returns
Initially I wrote that you could use a
s/\n/<br>/gsx;
To convert the new lines to html line breaks, but then I realized that you want to view xml, and it would have broken your xml.
Comment on
Re: Displaying carriage returns
Download
Code
In Section
Seekers of Perl Wisdom