All,
I am trying to read the content of a DCR into a string so that I can then use TeamSite DCRparser on the XML nodes to extract the values. Problem is, when I try to slurp the DCR into a string all that I takes in is the XML declaration:
<?xml version="1.0" encoding="UTF-8"?>
This is the code I am using
my $dcr = "y:\\internet\\main\\branch1\\WORKAREA\\content\\templatedata\\intranet\\deptInfo\\data\\demo-112103";
open(DCR, $dcr) || or die ****...
my $xml = <DCR>;
local $/=undef;
close DCR;
print "XML: $xml\n";
But all that is printed is the XML declaration. This leads me to conclude it can open the file, buit what gives?
Any help would be great :-)
Cheers,
Lucas
Lucas Cochrane
lcochrane@dc.com