Adding elements to node
I have a context node that contains 0..n items (AttendanceNode). This node contains daily attendance records for employees. I need to look at this node and add an element for any missing work days for each employee (thus each employee has at least one record for each work day).
I am looping though the attendance node in my context. What my question is - is it possible to create a temporary node that I put each of the elements in the attendance node plus the new ones I add - then copy the node back? Is there a better way to do this? My assumption is that it is not correct to add elements to a node you are looping though while you are in the loop.