<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to query an XML file by creating a rule in Infopath 2010.</title><link>https://www.infopathdev.com:443/forums/thread/85935.aspx</link><pubDate>Thu, 10 Jan 2013 14:52:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85935</guid><dc:creator>PSKumar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85935.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=85935</wfw:commentRss><description>&lt;p&gt;Thanks Hilary. It worked.&lt;/p&gt;</description></item><item><title>Re: How to query an XML file by creating a rule in Infopath 2010.</title><link>https://www.infopathdev.com:443/forums/thread/85914.aspx</link><pubDate>Thu, 10 Jan 2013 00:33:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85914</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=85914</wfw:commentRss><description>&lt;p&gt;Hi - your XML data connection does not have query fields, so the first two actions in your rule aren&amp;#39;t really doing anything.&lt;/p&gt;
&lt;p&gt;In the fields task pane, drag the secondary data source onto your form so you can see the data and run those two actions and you should see that they make no difference - when that XML data source loads, it will have all the data.&lt;/p&gt;
&lt;p&gt;So, instead, you need to be using filters.&lt;/p&gt;
&lt;p&gt;When you set Emp_FName to Fname, you need to add a filter to Fname, that ID in the Row is equal to the User Id field you are currently trying to use in the query.&lt;/p&gt;</description></item><item><title>How to query an XML file by creating a rule in Infopath 2010.</title><link>https://www.infopathdev.com:443/forums/thread/85904.aspx</link><pubDate>Wed, 09 Jan 2013 18:32:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85904</guid><dc:creator>PSKumar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85904.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=85904</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a data connection to retrieve data from an XML file.&amp;nbsp; My users type in their Userid into a field on Infopath form &lt;br /&gt;and the XML data connection should fetch their name and contact details from XML file based on Userid.&lt;/p&gt;
&lt;p&gt;Below is the structure of my XML file.&lt;/p&gt;
&lt;p&gt;- &amp;lt;Root xmlns:xsi=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;- &amp;lt;Row&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;ID&amp;gt;12345&amp;lt;/ID&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Fname&amp;gt;Test1&amp;lt;/Fname&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Lname&amp;gt;Test2&amp;lt;/Lname&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Email&amp;gt;test12@test.com&amp;lt;/Email&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Phone&amp;gt;123-456-7890&amp;lt;/Phone&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;/Row&amp;gt;&lt;br /&gt;- &amp;lt;Row&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;ID&amp;gt;54321&amp;lt;/ID&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Fname&amp;gt;Test3&amp;lt;/Fname&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Lname&amp;gt;Test4&amp;lt;/Lname&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Email&amp;gt;test34@test.com&amp;lt;/Email&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;Phone&amp;gt;123-456-7891&amp;lt;/Phone&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;/Row&amp;gt;&lt;br /&gt;&amp;lt;/Root&amp;gt;&lt;/p&gt;
&lt;p&gt;Now when I am trying to build a rule some thing like below, it always fetches 1st record(12345) details even though i change the &lt;br /&gt;user id on the form to 2nd record.(54321).&lt;/p&gt;
&lt;p&gt;Condition: Userid is not blank&lt;br /&gt;Rule type: Action&lt;br /&gt;Run these actions:&lt;/p&gt;
&lt;p&gt;Set a field&amp;#39;s value : ID = . [ User id field]&lt;br /&gt;Query using a dataconnection : TestXML&lt;br /&gt;Set a field&amp;#39;s value : Emp_FName = FName&lt;br /&gt;Set a field&amp;#39;s value : Emp_LName = LName &lt;br /&gt;Set a field&amp;#39;s value : Emp_Email = Email&lt;br /&gt;Set a field&amp;#39;s value : Emp_Phone = Phone&lt;/p&gt;
&lt;p&gt;Earlier i have used similar method to read Active Directory using SOAP service (GetUserProfileByName) and it worked fine.&lt;br /&gt;Now when i am trying to do similar method to get the data from XML file, it is not working. Please advise.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>