I am trying to replace the option node in the main with the results returned from webservice.
option happens to be in a row of a repeating table.
IXMLDOMNode OldChild = thisXDocument.DOM.selectSingleNode("/my:myFields//my:Choices/my:Choice["+System.Convert.ToString(currow)+"]/my:option");
IXMLDOMNode NewChild = wsDOM.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:MarkLogicDistinctQueryResponse/tns:MarkLogicDistinctQueryResult/result/option");
OldChild.parentNode.replaceChild(NewChild,OldChild);
I get the following error:
System.Runtime.InteropServices.COMException
Element 'option' is unexpected according to content model of parent element '
http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-05T18-57-23}Choice'.Expecting:
http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-05T18-57-23}option.is this because web return has no namespace my: ?
if so how do I get around that ?