<?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: Select a single node</title><link>https://www.infopathdev.com:443/forums/thread/30666.aspx</link><pubDate>Tue, 22 Jul 2008 09:50:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30666</guid><dc:creator>cbichler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30666</wfw:commentRss><description>&lt;p&gt;Thank you Srikrushna!&lt;/p&gt;
&lt;p&gt;Works fine!&lt;/p&gt;</description></item><item><title>Re: Select a single node</title><link>https://www.infopathdev.com:443/forums/thread/30663.aspx</link><pubDate>Tue, 22 Jul 2008 09:33:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30663</guid><dc:creator>srikrushna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30663</wfw:commentRss><description>Try with this

xpn.SelectSingleNode(&amp;quot;/Doku/my:field1&amp;quot;, NamespaceManager).Value;
Sure it will work.</description></item><item><title>Select a single node</title><link>https://www.infopathdev.com:443/forums/thread/30658.aspx</link><pubDate>Tue, 22 Jul 2008 07:21:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30658</guid><dc:creator>cbichler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30658</wfw:commentRss><description>&lt;p&gt;Hello there!&lt;/p&gt;
&lt;p&gt;I have no experience in working with Infopath and am completely new with it. &lt;br /&gt;I have the following problem that might be really easy to solve for you guys: I want to select a single node from my XML-file&amp;nbsp;by following line:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;xpn.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/Doku/my:field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;(xpn is the root XPathNavigator)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I get&amp;nbsp;following XPath-&amp;nbsp;Exception:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;quot;Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I appreciate every kind of help! &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers,&lt;br /&gt;&amp;nbsp;Chris&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>