<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: replace a main node  with web service return</title><link>https://www.infopathdev.com:443/forums/thread/8354.aspx</link><pubDate>Sat, 26 Nov 2005 00:40:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8354</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8354</wfw:commentRss><description>I changed the webservice to include the xmlns:my and it worked fine.&lt;br /&gt;&lt;br /&gt;thanks.&lt;br /&gt;</description></item><item><title>Re: replace a main node  with web service return</title><link>https://www.infopathdev.com:443/forums/thread/8353.aspx</link><pubDate>Fri, 25 Nov 2005 07:14:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8353</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8353</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Yes when you do a replacenode you need to have the same node with the same prefix of namespace!&lt;br /&gt;&lt;br /&gt;He has lot of work around:&lt;br /&gt;&lt;br /&gt;Make a replace in your node !&lt;br /&gt;Make your form with your custom schema without namespace!&lt;br /&gt;Change the webservice return!&lt;br /&gt;Replace only the text not the node!&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>replace a main node  with web service return</title><link>https://www.infopathdev.com:443/forums/thread/5133.aspx</link><pubDate>Fri, 25 Nov 2005 06:11:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5133</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5133</wfw:commentRss><description>I am trying to replace the option node in the main with the results returned from webservice.&lt;br /&gt;option happens to be in a row of a repeating table.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IXMLDOMNode OldChild = thisXDocument.DOM.selectSingleNode("/my:myFields//my:Choices/my:Choice["+System.Convert.ToString(currow)+"]/my:option");&lt;br /&gt;&lt;br /&gt;IXMLDOMNode NewChild = wsDOM.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:MarkLogicDistinctQueryResponse/tns:MarkLogicDistinctQueryResult/result/option");&lt;br /&gt;&lt;br /&gt;OldChild.parentNode.replaceChild(NewChild,OldChild);&lt;br /&gt;&lt;br /&gt;I get the following error: &lt;br /&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;Element 'option' is unexpected according to content model of parent element '&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-05T18-57-23}Choice'.&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-05T18-57-23}Choice'.&lt;/a&gt;&lt;br /&gt;Expecting: &lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-05T18-57-23}option.&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-05T18-57-23}option.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;is this because web return has no namespace my: ?&lt;br /&gt;if so how do I get around that ?&lt;br /&gt;</description></item></channel></rss>