<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Send data from taskpane to form</title><link>https://www.infopathdev.com:443/forums/thread/33348.aspx</link><pubDate>Wed, 22 Oct 2008 09:50:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33348</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33348.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33348</wfw:commentRss><description>&lt;p&gt;Hello Welcome to the Forums,&lt;/p&gt;
&lt;p&gt;In your case not required to set the namespace property. First you can try once are getting the node or not?&lt;/p&gt;
&lt;p&gt;var testtextNode = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:testtext&amp;quot;);&lt;/p&gt;
&lt;p&gt;if(testtextNode != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; testtextNode.text = &amp;quot;123&amp;quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;In this you have to check once again XPath should be correct?&lt;/p&gt;</description></item><item><title>Send data from taskpane to form</title><link>https://www.infopathdev.com:443/forums/thread/33342.aspx</link><pubDate>Wed, 22 Oct 2008 08:13:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33342</guid><dc:creator>hippie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33342.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33342</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;im want to send text from the task pane to a form field.&lt;/p&gt;&lt;p&gt;what i itried is this ...&lt;/p&gt;&lt;p&gt;XDocument = window.external.Window.XDocument;&lt;br /&gt;&lt;br /&gt;XDocument.DOM.setProperty(&amp;#39;SelectionNamespaces&amp;#39;, &amp;#39;xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-09-27T16:18:33&amp;quot;&amp;#39; ); &lt;br /&gt;&lt;br /&gt;XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:testtext&amp;quot;).text = &amp;quot;123&amp;quot;;&amp;nbsp; &lt;/p&gt;&lt;p&gt;I recieved an error &amp;quot; XDocument.DOM.selectSingle.........&amp;quot; is Null ... Any Ideas ?&lt;/p&gt;&lt;p&gt;Thank you very much ! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>