<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117149.aspx</link><pubDate>Thu, 31 Aug 2017 18:32:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117149</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117149</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Also - you may find this MSDN link helpful: &lt;a href="https://msdn.microsoft.com/en-us/library/office/aa945227.aspx"&gt;https://msdn.microsoft.com/en-us/library/office/aa945227.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117147.aspx</link><pubDate>Thu, 31 Aug 2017 18:28:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117147</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117147</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Try using a foreach if you need to iterate through the&amp;nbsp;entire set of records&amp;nbsp; - I am having a hard time making sense of your code other than the first two lines (try using IE when posting to the forum - it is an older version and does best with IE).&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;foreach(XPathNavigator kit in&amp;nbsp;KitItem)&lt;/p&gt;&lt;p&gt;{&amp;nbsp;//do stuff here}&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117146.aspx</link><pubDate>Thu, 31 Aug 2017 15:13:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117146</guid><dc:creator>edduval</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117146</wfw:commentRss><description>You were exactly correct.  I think I am getting to the heart of my problem, I hope I can communicate it well enough.
Obviously, there is something (probably lots) I don&amp;#39;t understand about processing xml.

XPathNavigator myKits = DataSources[&amp;quot;Kits&amp;quot;].CreateNavigator();
XPathNodeIterator KitItem = myKits.Select(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&amp;quot;, NamespaceManager);

I DECIDED TO NAVIGATE THROUGH EACH RECORD
the only record I can seem to return is the first record, which has an ID OF &amp;quot;6&amp;quot;  (THIS IS COMING FROM MY IMMEDIATE WINDOW)


? KitItem.Count       // I have 23 records in my list     
23
? KitItem.CurrentPosition          
3
?  KitItem.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ID&amp;quot;, NamespaceManager).Value;
&amp;quot;6&amp;quot;                 ? KitItem.CurrentPosition
4
?  KitItem.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ID&amp;quot;, NamespaceManager).Value;
&amp;quot;6&amp;quot;</description></item><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117130.aspx</link><pubDate>Wed, 30 Aug 2017 15:16:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117130</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117130.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117130</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think your XPath is incorrect for the ID node. It is not &amp;quot;@:ID&amp;quot;. It is not &amp;quot;@d:ID&amp;quot;. I think it is &amp;quot;d:ID&amp;quot;.&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;XPathNavigator myPricelist = DataSources[&amp;quot;Pricelist&amp;quot;].CreateNavigator(); &lt;br /&gt;XPathNavigator Pointer = myPricelist.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:ID=14]&amp;quot;, NamespaceManager)&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-right:0px;" dir="ltr"&gt;You do not need a separate namespace manager, you just need the correct XPath. :)&lt;/p&gt;</description></item><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117127.aspx</link><pubDate>Wed, 30 Aug 2017 11:49:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117127</guid><dc:creator>edduval</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117127</wfw:commentRss><description>Thanks Hilary!  I have twisted and turned this every which way I can and have been unable to get a return value.
This is what I am down to:


           XPathNavigator myPricelist = DataSources[&amp;quot;Pricelist&amp;quot;].CreateNavigator();

           XPathNodeIterator Prices = myPricelist.Select(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&amp;quot;, NamespaceManager);

           XPathNavigator myItem = Prices.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/Title[@d:ID=14]&amp;quot;, NamespaceManager);

           myItem always returns null.

I have just run with the default NamespaceManager, I am handling a main data source also, do I need to define a separate NamespaceManager?

I have searched the web over and over, not able to find a good example of how to deal with SharePoint files.
Any alternative format or insight you can give me would be appreciated.  


You are the Greatest!!  Thanks So Much!!</description></item><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117122.aspx</link><pubDate>Tue, 29 Aug 2017 15:08:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117122</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117122.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117122</wfw:commentRss><description>Your XPath is incorrect, I think. In the form, in design mode, in the Fields task pane, select the PriceList data source. Right click the ID node and select Copy XPath. I&amp;#39;m thinking it is going to be &amp;quot;d:ID&amp;quot;, not &amp;quot;@ID&amp;quot;.</description></item><item><title>Re: Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117120.aspx</link><pubDate>Tue, 29 Aug 2017 14:49:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117120</guid><dc:creator>edduval</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117120</wfw:commentRss><description>A little more info.  I have also tried all of the variations with &amp;quot;@d:ID=14

Still cant get any of them to locate the record.</description></item><item><title>Problems with XML filtering</title><link>https://www.infopathdev.com:443/forums/thread/117119.aspx</link><pubDate>Tue, 29 Aug 2017 14:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117119</guid><dc:creator>edduval</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117119.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117119</wfw:commentRss><description>This should be real simple, but I have spent numerous hours trying to get it to work and with very little luck.

I have a secondary data connection to a SharePoint List  that I am trying to pull a record based on the ID  (simple huh?)
I have tried both of these versions of the select and cant get it to do a match for me.
I have verified the record does exist with the ID = 14 and I have tried with and without the single quotes on 14.
Each time the Pointer returns null.

Any Ideas?

Thanks so much!!



XPathNavigator myPricelist = DataSources[&amp;quot;Pricelist&amp;quot;].CreateNavigator();

XPathNavigator Pointer = myPricelist.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[@ID=&amp;#39;14&amp;#39;]&amp;quot;, NamespaceManager);


AND

XPathNavigator myPricelist = DataSources[&amp;quot;Pricelist&amp;quot;].CreateNavigator();

XPathNodeIterator Prices = myPricelist.Select(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&amp;quot;, NamespaceManager);

XPathNavigator Pointer = Prices.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[@ID=&amp;#39;14&amp;#39;]&amp;quot;, NamespaceManager);</description></item></channel></rss>