I do like the look of qRules and will look into it for future projects. I have seen it as the answer to many problems on the forums but it is not approved for me to use or a part of my budget.
For now I am stuck using what comes with InfoPath.
My current code looks like this:
//get the parent node for the repeating group
XPathNavigator parent = MainDataSource.CreateNavigator().SelectSingleNode("/my:StudentNotecard/my:Interactions/my:InteractionList", NamespaceManager);
//clone a node from Sample Data
XmlDocument sampleData = new XmlDocument();
sampleData.Load(this.Template.OpenFileFromPackage("sampledata.xml"));
XPathNavigator child = sampleData.CreateNavigator().SelectSingleNode("/my:StudentNotecard/my:Interactions/my:InteractionList/my:InteractionsList", NamespaceManager).Clone();
//append the node
parent.AppendChild(child);
I appreciate any help.
Jon