<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submiting a node's data via a custom Submit macro</title><link>https://www.infopathdev.com:443/forums/thread/33326.aspx</link><pubDate>Wed, 22 Oct 2008 05:05:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33326</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33326</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For replacing the main data source node with secondary DOM node then both schema should be equal and namespace of the form also should be same. &lt;/p&gt;
&lt;p&gt;When you do a replace node you need to have the same node with the same prefix of namespace. Here is 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 Web Service return&lt;/p&gt;</description></item><item><title>Submiting a node's data via a custom Submit macro</title><link>https://www.infopathdev.com:443/forums/thread/33324.aspx</link><pubDate>Wed, 22 Oct 2008 02:56:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33324</guid><dc:creator>guillermo_rafael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33324</wfw:commentRss><description>&lt;p&gt;I also have the following issue&lt;/p&gt;
&lt;p&gt;Via the XDocument.DOM I can access the node I want the correspondig data to be submitted to a WebService&lt;/p&gt;
&lt;p&gt;I also get from my (secondary) Data Source it&amp;#39;s DOM from where I can navigate to the Input node where the data will be taken when adapter.Query() is called.&lt;/p&gt;
&lt;p&gt;But instead of writing loops to copy values from the source node to the data source node where data is taken when Query() is called, I would like to just simply&lt;/p&gt;
&lt;p&gt;replace the data source node with the XDocument DOM one, is there a way to do this, in VBS, I think I&amp;#39;m having napespace issues when I try to do a replace &lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Guillermo&lt;/p&gt;</description></item></channel></rss>