Sorry I don't have any code snippets to go along with this, but in general, it's a basic matter of getting a value (from the loaded DOM) and setting that value (to the main DOM).
It sounds as if both schemas are identical. If so, this should make things much easier.
You need to walk through the hierarchy of your loaded DOM, getting each node's value, and then set the value on the corresponding node in the main DOM.