Hi Greg,
I looked through the InfoPath SDK document as well as InfoPath help document, but didn't get any solution.
According to the document, DOM of the secondary data source can be got and thus nodes can be remove by the function "removeChild()".
But if we get the DOM of the main data source by "XDocument.DOM", it is read-only, which means nodes of the DOM can't be removed.
If I am not on the right way, would you be so kind enough to show me how to get the nodes of the DOM of the main data source removed?
Many thanks!
quote:
Originally posted by Greg Collins
It is possible if the nodes are set to have minOccurs="0" in the schema. If that is not the case then you will not be able to remove them. If it is the case you should be able to remove them using code.