<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: to recover the value of a field</title><link>https://www.infopathdev.com:443/forums/thread/34955.aspx</link><pubDate>Wed, 26 Nov 2008 20:52:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34955</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=34955</wfw:commentRss><description>&lt;p&gt;I solved the problem using the following code:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim Node as XPathNavigator&lt;br /&gt;&amp;nbsp;Dim sVar as String&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;&amp;nbsp;Node = MainDataSource.CreateNavigator().SelectSingleNode(&lt;span style="color:green;"&gt;&amp;quot;/my:mesChamps/my:CODE_RISQUE&amp;quot;, Me.NamespaceManager&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;sVar=Node.Value&lt;/span&gt; &lt;/p&gt;&lt;div style="text-align:left;" id="result_box"&gt;the addition of &lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;&lt;span style="color:green;"&gt;Me.NamespaceManager&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;Thanks &lt;b&gt;Jimmy !&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks Hilary Shiva &lt;b&gt;for answer&lt;/b&gt;!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: to recover the value of a field</title><link>https://www.infopathdev.com:443/forums/thread/34946.aspx</link><pubDate>Wed, 26 Nov 2008 18:19:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34946</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=34946</wfw:commentRss><description>&lt;p&gt;Are you using InfoPath 2007? If so, you can right click the field in the data source task pane and copy the xpath....&lt;/p&gt;</description></item><item><title>Re: to recover the value of a field</title><link>https://www.infopathdev.com:443/forums/thread/34944.aspx</link><pubDate>Wed, 26 Nov 2008 17:53:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34944</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=34944</wfw:commentRss><description>&lt;div style="text-align:left;" id="result_box"&gt;I am a beginner with InfoPath and the key for me, to recover the value of the field. &lt;br /&gt;&lt;/div&gt;&lt;p&gt;I think the error is in the path xpath : /my:mesChamps/my:CODE_RISQUE&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Please help me&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: to recover the value of a field</title><link>https://www.infopathdev.com:443/forums/thread/34928.aspx</link><pubDate>Wed, 26 Nov 2008 06:55:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34928</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=34928</wfw:commentRss><description>&lt;p&gt;It looks like you want to be using code more like this:&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;&amp;nbsp;Dim Node as XPathNavigator&lt;br /&gt;&amp;nbsp;Dim sVar as String&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;&amp;nbsp;Node = MainDataSource.CreateNavigator().SelectSingleNode(&lt;span style="COLOR:green;"&gt;&amp;quot;/my:mesChamps/my:CODE_RISQUE&amp;quot;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;sVar=Node.Value&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: to recover the value of a field</title><link>https://www.infopathdev.com:443/forums/thread/34927.aspx</link><pubDate>Wed, 26 Nov 2008 04:35:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34927</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34927.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=34927</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In your code you are not initializing for ‘xmlDoc&amp;#39; variable. Just you declared as variable without initializing any value. As per the code ‘xmlDoc&amp;#39; is null then we much not able execute next step is ‘xmlDoc.DocumentElement&amp;#39; property. &lt;/p&gt;
&lt;p&gt;Check once your code.&lt;/p&gt;</description></item><item><title>to recover the value of a field</title><link>https://www.infopathdev.com:443/forums/thread/34924.aspx</link><pubDate>Wed, 26 Nov 2008 04:09:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34924</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=34924</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;I have a
problem to recover the value of a field. &lt;span&gt;&amp;nbsp;&lt;/span&gt;I have &lt;span&gt;&amp;nbsp;&lt;/span&gt;a exeception : “ &lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;The exception Xpath is not managed by the user code.”&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt; &lt;br /&gt;
(The manager namespaces or XsltContext is required. This request has a prefix,
a variable or user-defined function.).&lt;span&gt;&amp;nbsp; &lt;/span&gt;I
use Visual basic and InfoPath 2007.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim&lt;span&gt;&amp;nbsp; &lt;/span&gt;xmlDoc &lt;span&gt;&amp;nbsp;&lt;/span&gt;as XmlDocument&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim Node as XmlNode &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim sVar as String&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Node =xmlDoc.DocumentElement.SelectSingleNode(&lt;span style="color:green;"&gt;&amp;quot;/my:mesChamps/my:CODE_RISQUE&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;sVar=Node.value&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Please help me&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>