<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Getting nth element from secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/34189.aspx</link><pubDate>Wed, 12 Nov 2008 15:38:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34189</guid><dc:creator>guptasourav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=34189</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks a lot for your reply.&amp;nbsp; It solved my prob.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting nth element from secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/34165.aspx</link><pubDate>Wed, 12 Nov 2008 09:49:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34165</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=34165</wfw:commentRss><description>&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-themecolor:text1;"&gt;Hi,&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-themecolor:text1;"&gt;If the form is a browser form, [n] does not work. Use the following xpath as default value for a text box to get the nth element in a browser form.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;xdXDocument:GetDOM(“Secondary DOM Name&amp;quot;)/RootNode/NodeName/RepeatingNodeName[count(&lt;span style="COLOR:black;mso-themecolor:text1;"&gt;preceding-sibling::&lt;/span&gt;RepeatingNodeName) = (n-1)]/fieldNode&lt;span style="COLOR:black;mso-themecolor:text1;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-themecolor:text1;"&gt;Example: xdXDocument:GetDOM(&amp;quot;Emp&amp;quot;)/Employees/Emp[count(preceding-sibling::Emp) = (n-1)]/EmpID&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-themecolor:text1;"&gt;&amp;nbsp;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Getting nth element from secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/34149.aspx</link><pubDate>Wed, 12 Nov 2008 05:27:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34149</guid><dc:creator>santhoshp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=34149</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Use the following Xpath to get nth value.&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;SecondaryDataSource&amp;quot;)/Vehicles/Year[n]/@value&lt;/p&gt;
&lt;p&gt;In this example Year is repeating group and value is the attribute.&lt;/p&gt;</description></item><item><title>Re: Getting nth element from secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/34147.aspx</link><pubDate>Wed, 12 Nov 2008 05:20:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34147</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=34147</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Hello,&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;We can get the nth position of element from repeating node using XPath. As below,&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;xdXDocument:GetDOM(“Secondary DOM Name&amp;quot;)/my:RootNode/my:NodeName/my:RepeatingNodeName[&amp;lt;position of the node&amp;gt;]&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Getting nth element from secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/34139.aspx</link><pubDate>Tue, 11 Nov 2008 22:01:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34139</guid><dc:creator>guptasourav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34139.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=34139</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I have a secondary data source returning some unique IDs. I want to get nth value from this datasource and show it in a text box.&lt;/p&gt;&lt;p&gt;Is this possible without writing code. Is there a way to get this by using Xpath. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>