We are converting an old Spectra application into TeamSite. We are planning on converting the Spectra objects into xml files whose tags map directly to the tags I have created in the dcr's within TeamSite. What would be the best method to import these xml files into teamsite and set the attributes correctly so that we can use these as dcrs?Thanks for any help or pointers!Craig
Thank you so much for the replies. Is using iwextattr.exe within a perl script that will loop over each new dcr the only way (and best way) to set the external attributes after the xml files are imported? or is there a way to copy the attributes from an existing dcr and apply those attributes to all the new dcrs?Craig
#!d:\interwoven\iw-home\iw-perl\bin\iwperl.exeuse TeamSite::Config;(my $iwhome = TeamSite::Config::iwgethome()) =~ tr|\\|/|;use File::Find;$start = "Y:/default/main/branch/WORKAREA/Content/templatedata/";find(\&wanted, $start);foreach $DCR (@list) { if (!($DCR =~ m|\.xml$|) ) { next;} ($EA = $DCR) =~ s|.*templatedata/||; $EA =~ s|/data/.*||; $command = "$iwhome/bin/iwextattr -s TeamSite/Templating/DCR/Type=$EA \"$DCR\""; system ($command); }sub wanted {-f && push(@list, $File::Find::name);}