Hello,
We can do it using Jscript code, first you have to get the list from secondary source and set those values to one temporary node and these nodes should get added to parent node.
var secondaryRepeatingNodes = XDocument.GetDOM(“Seconday DOM Name”).selectNodes(“Secondary XPath of the repeating nodes”);
var parentNode = XDocument.DOM.selectSingleNode(“Repeating Parent Node XPath”);
var repeatingNode = XDocument.DOM.selectSingleNode(“Repeating Node XPath”);
var tempRepeatingNode = repeatingNode.cloneNode(true);
foreach (var secondaryRepeatingNode in secondaryRepeatingNodes)
{
var value = secondaryRepeatingNode.selectSingleNode(“XPath of one node in secondary XML”);
tempRepeatingNode. selectSingleNode(“XPath of need to set value”).text = value;
//Like this you have add more number node values
repeatingNode.appendChild(tempRepeatingNode);
tempRepeatingNode = repeatingNode.cloneNode(true);
}