XForms/Deep Copy with Insert Origin

Motivation
You want to add a new instance or element from a template. You want to do a deep copy of complex XML from one instance to another instance within a model.

Method
We will use the XForms xf:insert element with the origin attribute set to the source instance. We will use the nodeset attribute to indicate where the data should be copied to.

Link to XForms Application
Load XForms Application

Source Code
 