The dcr-type="xml"
and in the TPL I want to read the DCR content
I'm trying to do the following in the TPL
[HTML]
use TeamSite:

CRparser;
use TeamSite:

CRnode;
my $iwhome = TeamSite::Config::iwgethome();
my $dcr = iwpt_get_dcr_name();
my $xml = "";
my $dcr_file_data = "";
open(HNDL, '<:utf8', $dcr) or return "ERROR: Failed to open file $dcr ($!)";
$dcr_file_data = do{local $/; };
close HNDL;
[/HTML]
But this fails and when I debug using iwpt_compile.ipl it says,
[HTML]
XML parse error:
not well-formed (invalid token) at line 15, column 18, byte 203 at /local/apps/teamsite/iw-home/iw-perl/vendor/lib/XML/Parser.pm line 187
[/HTML]
I tried copying the DCR to an xml file on my local machine and wrote a small perl script to display the content and it works fine.
Can someone help me understand what am I doing wrong here.