<?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: In InfoPath 2007 - How do I retrieve a value from a form via the task pane using a standard html page and javascript?</title><link>https://www.infopathdev.com:443/forums/thread/23614.aspx</link><pubDate>Wed, 10 Oct 2007 14:06:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23614</guid><dc:creator>ur1down</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23614</wfw:commentRss><description>&lt;p&gt;Thanks to another online expert I was able to get the answer.&lt;/p&gt;&lt;font size="1"&gt;XDocument = window.external.Window.XDocument; &lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;XDocument.DOM.setProperty(&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;&amp;#39;SelectionNamespaces&amp;#39;&lt;/font&gt;&lt;font size="1"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="1"&gt;&amp;#39;xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-09-27T16:18:33&amp;quot;&amp;#39;&lt;/font&gt;&lt;font size="1"&gt; ); //The namespace for &amp;quot;my&amp;quot; path can be found in the myschema.xsd file.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="1"&gt;var bb = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field1&amp;quot;).value; &lt;/p&gt;&lt;/font&gt;</description></item><item><title>In InfoPath 2007 - How do I retrieve a value from a form via the task pane using a standard html page and javascript?</title><link>https://www.infopathdev.com:443/forums/thread/23387.aspx</link><pubDate>Tue, 02 Oct 2007 14:03:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23387</guid><dc:creator>ur1down</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23387.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23387</wfw:commentRss><description>&lt;p&gt;I am able to retrieve values out of my forms from the task pane in InfoPath 2003. However, I am having difficulty getting it to work in 2007. I get the error &amp;quot;Reference to undeclared namespace prefix: &amp;#39;my&amp;#39;.&amp;quot; &lt;/p&gt;
&lt;p&gt;Here is the code I am attempting to use: &lt;/p&gt;
&lt;p&gt;// Get a reference to the XDocument object for the InfoPath Form. &lt;/p&gt;
&lt;p&gt;XDocument = window.external.Window.XDocument; &lt;/p&gt;
&lt;p&gt;var bb = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field1&amp;quot;).value; &lt;/p&gt;</description></item></channel></rss>