This code for deleting rows from a repeating table doesnot work fine.
Could someone please help??
IXMLDOMDocument2 templateDom = (IXMLDOMDocument2)thisXDocument.CreateDOM();
templateDom.validateOnParse = false;
templateDom.load("template.xml");
templateDom.setProperty("SelectionNamespaces", "xmlns:my='http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-11-02T09:58:08'");
IXMLDOMNode oTemplateGrp = templateDom.selectSingleNode("/my:PR_Form/my:Executers/my:Approvers/my:Approver");Approver is the Repeating Group
for(int i=0;i<count;i++)
{
IXMLDOMNode oTemplateNode = oTemplateGrp.childNodes;
oTemplateGrp.removeChild(oTemplateNode);
}
Regards,
Abhishek