<?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: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14124.aspx</link><pubDate>Fri, 16 Dec 2005 08:15:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14124</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14124</wfw:commentRss><description>goo,well...ok ;)&lt;br /&gt;I solved my problem, i had to use /ns3:..../ns3:..... instead of /my:....,for my secondary data source. I dont know why, but it works now.</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14123.aspx</link><pubDate>Thu, 15 Dec 2005 20:12:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14123</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14123</wfw:commentRss><description>http://en.wikipedia.org/wiki/Goo_%28Gumby_character%29&lt;br /&gt;&lt;br /&gt;Sorry, couldn't resist! Anyway, I'm not sure - in InfoPath if you double-click on the node that you are trying to access and go the to the Details tab there is information about the namespace there.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14122.aspx</link><pubDate>Thu, 15 Dec 2005 15:14:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14122</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14122.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14122</wfw:commentRss><description>Forgive me, but..whats 'goo'?:)</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14121.aspx</link><pubDate>Thu, 15 Dec 2005 10:01:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14121</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14121</wfw:commentRss><description>You need the goo to select the namespaces.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14120.aspx</link><pubDate>Wed, 14 Dec 2005 15:01:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14120</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14120</wfw:commentRss><description>Maby there is another way of getting a data from secondary data source file?im really frustrated...</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14119.aspx</link><pubDate>Wed, 14 Dec 2005 14:53:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14119</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14119.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14119</wfw:commentRss><description>Doesnt matter what is written here,&lt;br /&gt;IXMLDOMNode worker = obj.DOM.selectSingleNode("/my:myFields/my:workers/my:worker[my:id=1]/my:name");&lt;br /&gt;or&lt;br /&gt;IXMLDOMNode worker = obj.DOM.selectSingleNode("/my:myFields/my:workers/my:worker/my:name");&lt;br /&gt;i cant make this work. I want to get name with id from my primary source,from textbox on my form.But now i just want to know, that it works and gets anything from this workers.xml...</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14118.aspx</link><pubDate>Wed, 14 Dec 2005 14:36:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14118</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14118.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14118</wfw:commentRss><description>The XPath in this statement looks really weird:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMNode worker = obj.DOM.selectSingleNode("/my:myFields/my:workers/my:worker[my:id=1]/child..login");&lt;/pre&gt;&lt;br /&gt;What is "child..login" at the end? If you want the name, change it to "my:name".  The reason your getting an error on the line that you're getting them on is because the line listed above is initializing the 'worker' variable to null because your XPath does not return any nodes.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/14117.aspx</link><pubDate>Wed, 14 Dec 2005 12:43:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14117</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14117.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14117</wfw:commentRss><description>Ok, solved it(thanks for&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=88&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=88&lt;/a&gt;).&lt;br /&gt;But now,i cant get any data.My code looks like that:&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;DataObject obj = thisXDocument.DataObjects["workers.xml"];&lt;br /&gt;IXMLDOMDocument3 domXML = (IXMLDOMDocument3) obj.DOM;&lt;br /&gt;domXML.setProperty("SelectionNamespaces","xmlns:my=\"http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-01T19:27:12\"");&lt;br /&gt;IXMLDOMNode worker = obj.DOM.selectSingleNode("/my:myFields/my:workers/my:worker[my:id=1]/child..login");&lt;br /&gt;[...]&lt;br /&gt;row.selectSingleNode("my:pracownik").nodeTypedValue=worker.text;&lt;br /&gt;------------------------&lt;br /&gt;And im getting &lt;br /&gt;"System.NullReferenceException: Object reference not set to an instance of an object"&lt;br /&gt;on this last line of code (row.selected...).I have field 'pracownik' on my form and my 'workers.xml' file looks like that:&lt;br /&gt;[..]&lt;br /&gt;&amp;lt;my:workers&amp;gt;&lt;br /&gt;   &amp;lt;my:worker&amp;gt;&lt;br /&gt;     &amp;lt;my:id&amp;gt;1&amp;lt;/my:id&amp;gt;&lt;br /&gt;     &amp;lt;my:name&amp;gt;john&amp;lt;/my:name&amp;gt;&lt;br /&gt;   &amp;lt;/my:worker&amp;gt;&lt;br /&gt;   &amp;lt;my:worker&amp;gt;&lt;br /&gt;     &amp;lt;my:id&amp;gt;2&amp;lt;/my:id&amp;gt;&lt;br /&gt;     &amp;lt;my:name&amp;gt;tod&amp;lt;/my:name&amp;gt;&lt;br /&gt;   &amp;lt;/my:worker&amp;gt;&lt;br /&gt;[...]&lt;br /&gt;&amp;lt;/my:workers&amp;gt;&lt;br /&gt;&lt;br /&gt;Where is a mistake?&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------</description></item><item><title>How to access a secondary data source xml file</title><link>https://www.infopathdev.com:443/forums/thread/12713.aspx</link><pubDate>Wed, 14 Dec 2005 10:31:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12713</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12713.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12713</wfw:commentRss><description>I have secondary data source "workers.xml".And i have a textbox field1 on my form. Now, i want to use a field1 value to get from workers.xml a person with id=field1 value.How can i do that in c#?</description></item></channel></rss>