<?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 do I Identify correct xpath?</title><link>https://www.infopathdev.com:443/forums/thread/76245.aspx</link><pubDate>Fri, 09 Mar 2012 17:36:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76245</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76245.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76245</wfw:commentRss><description>If you want to get a specific row of repeating data you&amp;#39;ll need to specify the row number in your xpath.&amp;nbsp; Something like: /my:myFields/my:CommoditySummary/my:Line_Items/my:Commodity/my:Origination[current()].&amp;nbsp; The index should be on whatever node is repeating, so that may be the commodity group in your case.&amp;nbsp; This is for the xpath, but not 100% sure if this translates into code or whether there is a code specific way to do this.</description></item><item><title>How do I Identify correct xpath?</title><link>https://www.infopathdev.com:443/forums/thread/76217.aspx</link><pubDate>Thu, 08 Mar 2012 20:22:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76217</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76217.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76217</wfw:commentRss><description>&lt;p&gt;I have a form with code behind. I am using a dropdown as filter criteria for a second dropdown in a repeating section. If I use the full xpath to dd1 it will always filter from the dropdown in row 1. I want to filter by the current row. Still unfamiliar with xpaths can some lend some help?&lt;/p&gt;
&lt;p&gt;xpath filter = &amp;nbsp;/my:myFields/my:CommoditySummary/my:Line_Items/my:Commodity/my:Origination&lt;/p&gt;
&lt;p&gt;xpath field = &amp;nbsp;/my:myFields/my:CommoditySummary/my:Line_Items/my:Commodity/my:Destination&lt;/p&gt;
&lt;p&gt;I can never figure out if it is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;my:Origination&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;/my:Origination&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;//my:Origination&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;../my:Origination&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;</description></item></channel></rss>