<?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: Access node in code.  Should be easy, but...</title><link>https://www.infopathdev.com:443/forums/thread/24088.aspx</link><pubDate>Wed, 31 Oct 2007 17:06:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24088</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24088.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24088</wfw:commentRss><description>&lt;p&gt;SetNamedNodeProperty() is being used incorrectly.&lt;/p&gt;
&lt;p&gt;The parameters are: (NodeToWhichThePropertyWillBeSet, NameOfProperty, ValueOfProperty)&lt;/p&gt;
&lt;p&gt;You are placing an XPath in the second parameter which is not a valid property name. The first parameter needs to be a valid node.&lt;/p&gt;</description></item><item><title>Access node in code.  Should be easy, but...</title><link>https://www.infopathdev.com:443/forums/thread/22212.aspx</link><pubDate>Wed, 08 Aug 2007 14:18:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22212</guid><dc:creator>chauvinr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22212.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22212</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying the following code to set a field named Editor:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.MainDataSource.SetNamedNodeProperty(myXNav, &amp;quot;/ns3:myFields/ns3:MJQualityIndicator&amp;quot;, Application.User.UserName.ToString)&lt;/p&gt;&lt;p&gt;&amp;nbsp;The problem is &amp;quot;/ns3:myFields/ns3:MJQualityIndicator&amp;quot; is returning an invalid argument error.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Heres the document&lt;/p&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;?mso-infoPathSolution solutionVersion=&amp;quot;1.0.0.1087&amp;quot; productVersion=&amp;quot;12.0.0&amp;quot; PIVersion=&amp;quot;1.0.0.0&amp;quot; href=&amp;quot;file:///C:\Users\chauvinr.MJSC\AppData\Local\Microsoft\InfoPath\Designer2\813317f2c6347ce\manifest.xsf&amp;quot; language=&amp;quot;en-us&amp;quot; ?&amp;gt;&lt;br /&gt;&amp;lt;?mso-application progid=&amp;quot;InfoPath.Document&amp;quot; versionProgid=&amp;quot;InfoPath.Document.2&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;ns3:myFields xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot; xmlns:ns1=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-01-05T14:10:19&amp;quot; xmlns:ns3=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/my/2006-01-05T14:10:19&amp;quot; xmlns:tns=&amp;quot;http://mjsc-int.com&amp;quot; xmlns:msdata=&amp;quot;urn:schemas-microsoft-com:xml-msdata&amp;quot; xmlns:_xdns0=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/changeTracking&amp;quot; xmlns:soap=&amp;quot;http://schemas.xmlsoap.org/soap/envelope/&amp;quot; xmlns:http=&amp;quot;http://schemas.xmlsoap.org/wsdl/http/&amp;quot; xmlns:soap12=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap12/&amp;quot; xmlns:mime=&amp;quot;http://schemas.xmlsoap.org/wsdl/mime/&amp;quot; xmlns:soapenc=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; xmlns:tm=&amp;quot;http://microsoft.com/wsdl/mime/textMatching/&amp;quot; xmlns:ns2=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap/&amp;quot; xmlns:wsdl=&amp;quot;http://schemas.xmlsoap.org/wsdl/&amp;quot; xmlns:diffgr=&amp;quot;urn:schemas-microsoft-com:xml-diffgram-v1&amp;quot; xmlns:msprop=&amp;quot;urn:schemas-microsoft-com:xml-msprop&amp;quot; xmlns:ns4=&amp;quot;urn:mdWebService&amp;quot; xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-01-03T22-13-40&amp;quot; xmlns:xd=&amp;quot;http://schemas.microsoft.com/office/infopath/2003&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:MJEnterpriseID&amp;gt;&amp;nbsp; 2007-08-08T10:12:35&amp;lt;/ns3:MJEnterpriseID&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:MJEnterpriseIDRelatedMaster&amp;gt;&amp;lt;/ns3:MJEnterpriseIDRelatedMaster&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:MJEnterpriseLastReviewDate&amp;gt;&amp;lt;/ns3:MJEnterpriseLastReviewDate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:MJEnterpriseStatus&amp;gt;&amp;lt;/ns3:MJEnterpriseStatus&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:MJPrivate&amp;gt;&amp;lt;/ns3:MJPrivate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:MJQualityIndicator&amp;gt;&amp;lt;/ns3:MJQualityIndicator&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:AutoResolvedWinner&amp;gt;&amp;lt;/ns3:AutoResolvedWinner&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns3:HasPicture&amp;gt;&amp;lt;/ns3:HasPicture&amp;gt;&lt;br /&gt;&amp;lt;/ns3:myFields&amp;gt; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>