<?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: XPath Example?</title><link>https://www.infopathdev.com:443/forums/thread/23327.aspx</link><pubDate>Fri, 28 Sep 2007 02:28:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23327</guid><dc:creator>Jeff.Wang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23327.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23327</wfw:commentRss><description>&lt;p&gt;It works if you use following codes:&lt;/p&gt;
&lt;p&gt;my:People/my:Person/my:Email[../my:Name = ../../../my:QueryName]&lt;/p&gt;
&lt;p&gt;You can simply do this using the &amp;quot;Filter Data...&amp;quot; option in the &amp;quot;Select a Field or Group&amp;quot; dialog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;jeff.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: XPath Example?</title><link>https://www.infopathdev.com:443/forums/thread/23299.aspx</link><pubDate>Thu, 27 Sep 2007 00:22:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23299</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23299</wfw:commentRss><description>&lt;p&gt;You probably want something along the lines of: &lt;strong&gt;/my:People/my:Person[my:Name = ../../my:QueryName]/my:Email&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>XPath Example?</title><link>https://www.infopathdev.com:443/forums/thread/23298.aspx</link><pubDate>Wed, 26 Sep 2007 23:19:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23298</guid><dc:creator>bspolarich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23298.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23298</wfw:commentRss><description>&lt;p&gt;I want to be able to query a repeating table for a particular row matching a simple dynamic condition.&amp;nbsp; I&amp;#39;m new to XPath so I&amp;#39;m sure this is a dumb question.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Say I have a DataSource like this:&lt;/p&gt;&lt;p&gt;People&lt;/p&gt;&lt;p&gt;- Person&lt;/p&gt;&lt;p&gt;-- Name&lt;/p&gt;&lt;p&gt;-- Email&lt;/p&gt;&lt;p&gt;QueryName&lt;/p&gt;&lt;p&gt;QueryEmail&lt;/p&gt;&lt;p&gt;I want to be able to enter a name into QueryName and have it display the correct Email from the People collection based on Name matching QueryName.&lt;/p&gt;&lt;p&gt;If I&amp;#39;m stupid about it I do this:&amp;nbsp; ../my:People/my:Person/my:Email&lt;/p&gt;&lt;p&gt;But that just always returns the Email value from the first element of the repeating section.&lt;br /&gt;&lt;br /&gt;So I start playing with XPath expressions. For example:&amp;nbsp; ../my:People/my:Person[last()]/my:Email&amp;nbsp; returns the Email from the last group in the section.&lt;/p&gt;&lt;p&gt;But how do I do a @ statement?&amp;nbsp; Nothing seems to work.&amp;nbsp; If I try to insert fields in the XPath I get complaints about &amp;quot;node-test expected&amp;quot; unless I strip off the &amp;quot;../&amp;quot; portion, and then nothing happens when I try that.&lt;/p&gt;&lt;p&gt;I obviously have to cut my teeth on this XML stuff a bit more :-) but pointers would be appreciated.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>