<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to use position() in xpath?</title><link>https://www.infopathdev.com:443/forums/thread/2864.aspx</link><pubDate>Thu, 27 Jul 2006 19:50:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2864</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2864</wfw:commentRss><description>The "//" at the begining tells the XPath to start at the top. Just drag the driverName field into the appropriate column in your repeating table.</description></item><item><title>Re: How to use position() in xpath?</title><link>https://www.infopathdev.com:443/forums/thread/2863.aspx</link><pubDate>Thu, 27 Jul 2006 08:47:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2863</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2863.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2863</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;Why do you want to use Position() when you can show all the names in the repeting Table by Binding the table to the XML?&lt;br /&gt;Open the repeating table forms and then select Change Binding and add the fields you want to show in the table.This way all the values return to the Table.&lt;br /&gt;&lt;br /&gt;Hope this helps you.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>How to use position() in xpath?</title><link>https://www.infopathdev.com:443/forums/thread/1445.aspx</link><pubDate>Thu, 27 Jul 2006 07:05:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1445</guid><dc:creator>jayliu2000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1445</wfw:commentRss><description>Hi, I encountered some difficulties when trying to use position() function in xpath.&lt;br /&gt;For example, I have a piece of XML like this:&lt;br /&gt;....&lt;br /&gt;&amp;lt;Driver&amp;gt;&lt;br /&gt;    &amp;lt;driverName&amp;gt;&lt;br /&gt;       driverA&lt;br /&gt;    &amp;lt;/driverName&amp;gt;&lt;br /&gt;&amp;lt;/Driver&amp;gt;&lt;br /&gt;&amp;lt;Driver&amp;gt;&lt;br /&gt;    &amp;lt;driverName&amp;gt;&lt;br /&gt;       driverB&lt;br /&gt;    &amp;lt;/driverName&amp;gt;&lt;br /&gt;&amp;lt;/Driver&amp;gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;Now I want to display these driver names in a repeating section repectively. I added an expression box and input "//Driver[position()]/driverName" as xpath. But I found it did not work as it was supposed. It always returns the first element. &lt;br /&gt;&lt;br /&gt;Can anybody help me?&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>