Home
TeamSite
TeamSite, LiveSite and OpenDeploy
inserting data into DCRs.....
Andy Knipp
OK, so I have ~ 12K DCRs that are missing a field, cause we added it after the fact. Users said no problem. Now we want to add the data so it will get pushed out.
I can tell the users to open all 12K DCRs, then save. :-)
Or I can look at a perl script. I have written several to recursively go down a directory structure, slurp in a DCR, using DCRnode and DCRparser I have done some data validation (the DCRs were programmatically created/imported)
The question I have is that I know how to read the field:
$filesize=rootnode->value('filesize');
from perldoc it look slike I shoudl be able to use set_attrib but I am not certain.
Are there any sample peices of code out there ? DId not see anything in the articles. Will this behave differently if the field does not exist or if it is there, just blank.
Anyone familar with this ? I am going to play with it (on a test set of data)
TIA
Andy
Find more posts tagged with
Comments
There are no comments yet