Hi Tom,
Indeed, I think that this is what I would do. If there is no other data in those rows, i.e. all the data comes from the uploaded XML, then you could start by deleting all the existing rows in fr-form-data, and as you iterate, at each step, insert a new "row" (form the your-grid-template instance), and populate it.
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet