<?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: XPath Query Syntax???</title><link>https://www.infopathdev.com:443/forums/thread/13271.aspx</link><pubDate>Sat, 18 Jun 2005 14:36:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13271</guid><dc:creator>kfrost</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13271.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13271</wfw:commentRss><description>P.S.&lt;br /&gt;&lt;br /&gt;What I have working so far.  Not sure it's optimal but to go to the first record, the following syntax appears to work.&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Trips")/dfs:myFields/dfs:dataFields/d:Trips[preceding::node()]/@TripID&lt;br /&gt;&lt;br /&gt;To go to the last, the following works:&lt;br /&gt;xdXDocument:GetDOM("Trips")/dfs:myFields/dfs:dataFields/d:Trips[last()]/@TripID&lt;br /&gt;&lt;br /&gt;Ok, the following code for next record works the first time the button is clicked.  Meaning the first time it's clicked, the next record will display.  However any subsequent clicks, nothing happens.&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Trips")/dfs:myFields/dfs:dataFields/d:Trips/following-sibling::*[1]/@TripID</description></item><item><title>Re: XPath Query Syntax???</title><link>https://www.infopathdev.com:443/forums/thread/13270.aspx</link><pubDate>Sat, 18 Jun 2005 14:22:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13270</guid><dc:creator>kfrost</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13270</wfw:commentRss><description>Thank you but I understand the concept of moving back and forth through using preceding and following.  The question is the correct xpath syntax in a Rule to accomplish this.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: XPath Query Syntax???</title><link>https://www.infopathdev.com:443/forums/thread/13269.aspx</link><pubDate>Thu, 16 Jun 2005 23:32:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13269</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13269</wfw:commentRss><description>Hello&lt;br /&gt;   This link should give the appropriate info on how to use preceding-sibling and following-sibling to get your scenario to work.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tips/default.aspx?i=2d9c464bbf4146ae91bf66395dca34ad&gt;http://www.infopathdev.com/howto/tips/default.aspx?i=2d9c464bbf4146ae91bf66395dca34ad&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>XPath Query Syntax???</title><link>https://www.infopathdev.com:443/forums/thread/12469.aspx</link><pubDate>Thu, 16 Jun 2005 21:24:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12469</guid><dc:creator>kfrost</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12469.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12469</wfw:commentRss><description>Hello, &lt;br /&gt;&lt;br /&gt;I'm rephrasing a previous post due to no response.  I'm trying to figure out the xpath syntax to get the values from preceding-sibling and Following-siblings&lt;br /&gt;&lt;br /&gt;Say I have a data connection and each set of records returned has a TripID field.  I want to assign a variable the value of the TripID of the preceding-Sibling or following-Sibling.&lt;br /&gt;&lt;br /&gt;Anybody know of how to do this?  Here is the syntax to get the current nodes TripID value.&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Trips")/dfs:myFields/dfs:dataFields/d:Trips/@TripID&lt;br /&gt;&lt;br /&gt;I would think it would have been something along the lines of:&lt;br /&gt;xdXDocument:GetDOM("Trips")/dfs:myFields/dfs:dataFields/d:Trips/../preceding-sibling/@TripID&lt;br /&gt;&lt;br /&gt;But I can't figure it out.  &lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;kris&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>