hi everybody,
i have a scenario which i want to copy a dcr from one branch to another branch but before doing that i need to parse through the xml and modify it then copying to the other branch .
here is the code below
for my $file (@files)
{
my $orginal_dcr = "$area$file";
open DCR, "$orginal_dcr";
while (){ $xml .= $_; }
close DCR;
#my $rootnode = TeamSite::XMLnode->new($xml);
my $rootnode = TeamSite:
CRnode->($xml);
$rootnode->set_inner_xml('content_id', '' );
# my $modified_dcr = $rootnode->get_dcr();
my $modified_dcr = $rootnode->get_xml();
my $cmd = "/usr/iw-home/bin/iwupdate -r -w $vpath_from/$modified_dcr $vpath_to";
the code above is in copy.ipl file that i run using a workflow
i need to know is it possible to parse the dcr and modify it then copying as i did above ?? i am guessing the mistake i am make is at the my $modified_dcr = $rootnode->get_xml(); part
or
any help would be appreciated.