It would be beneficial to manipulate the temp-tables while filling it using READ-XML or READ-JSON. Similar as the AFTER-FILL/AFTER-ROW-FILL. In this way it is possible to fill fields with initial values (i.e. which are not in the xml document).