I have an optional section in my form. I hope I can insert more by code in VB.NET.
First of all, I have tried thisXDocument.View.ExecuteAction("xOptional::insert", "repeatable section name"). It didn't work.
I am trying to use appendChild. the code is showed below:
oRepeatSectionNode = thisXDocument.DOM.selectSingleNode("Xpath")
domXMLNode = thisXDocument.CreateDOM()
domXMLNode.async = False
domXMLNode.loadXML(oRepeatSectionNode.xml)
thisXDocument.UI.Alert(domXMLNode.xml)
oParentNode = thisXDocument.DOM.selectSingleNodeXpath")
' so far it is good, but an error occured in following code:
oParentNode.appendChild(domXMLNode.documentElement)
Error: Element 'SectionNodeName' is unexpected according to content model of parent element 'SectionParentNodeName'.
I have spent whole day, but no luck.
Thanks in advance.
Eugene,