I tried to write a new method for insert a new node but it dosen't work. Can you help me?
Here is my xml:
myFields
logGroup
logEntries
age
name
Here is my code:
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-07-05T15:38:25"');
function CTRL1_5::OnClick(eventObj)
{
sRepeatingXml = "<my:logEntries xmlns:my='http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-07-05T15:38:25'><my:name>NameValue</my:name><my:age>3</my:age></my:logEntries>"
oXml = XDocument.CreateDOM()
oXml.async = false;
oXml.loadXML(sRepeatingXml);
parentofRepeatingNode = getNode("/my:myFields/my:logGroup/my:logEntries");
parentofRepeatingNode.appendChild(oXml.documentElement);
}
Thank you to all...
Bye Bye