<?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: Conditional input read from XML file</title><link>https://www.infopathdev.com:443/forums/thread/12185.aspx</link><pubDate>Mon, 24 Apr 2006 17:02:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12185</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12185.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12185</wfw:commentRss><description>I think this should do the trick:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("XML DATASOURCE")/entity/group/field[../../group/@caption = current() and ./@caption = "Location"]&lt;br /&gt;&lt;br /&gt;If this doesn't work, could you paste the XPath you tried so we can debug it?</description></item><item><title>Re: Conditional input read from XML file</title><link>https://www.infopathdev.com:443/forums/thread/12184.aspx</link><pubDate>Sun, 23 Apr 2006 07:45:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12184</guid><dc:creator>Tranquil</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12184</wfw:commentRss><description>Hi again,&lt;br /&gt;&lt;br /&gt;Thanks for the article, it really helped in understanding how can connect to the current XML tag choosen.&lt;br /&gt;However, i still some help in a condition i'm trying to meet in order to display the right data.&lt;br /&gt;&lt;br /&gt;Like i mentioned in the 1st message i've posted, i'm trying to display the values on a sub xml tree.&lt;br /&gt;here is the XML tree:&lt;font color="red"&gt;&lt;br /&gt;- &amp;lt;entity caption="Configuration Item"&amp;gt;&lt;br /&gt;  - &amp;lt;group caption="SVR01"&amp;gt;&lt;br /&gt;     &amp;lt;field key="C0" caption="Search code"&amp;gt;SVR01&amp;lt;/field&amp;gt; &lt;br /&gt;     &amp;lt;field key="C1" caption="Type"&amp;gt;Backup Server&amp;lt;/field&amp;gt; &lt;br /&gt;     &amp;lt;field key="C2" caption="Model"&amp;gt;ProLiant DL380 G3&amp;lt;/field&amp;gt; &lt;br /&gt;     &amp;lt;field key="C3" caption="Contract"&amp;gt;HP01&amp;lt;/field&amp;gt; &lt;br /&gt;     &amp;lt;field key="C4" caption="OS"&amp;gt;Windows 2000 Server&amp;lt;/field&amp;gt; &lt;br /&gt;     &amp;lt;field key="C5" caption="Location"&amp;gt;BOMBAI&amp;lt;/field&amp;gt; &lt;br /&gt;   &amp;lt;/group&amp;gt;&lt;br /&gt;- &amp;lt;/entity&amp;gt;&lt;/font id="red"&gt;&lt;br /&gt;after reading the article i've manged to display the field value of a certain group caption (using xPATH function in a rule in the combobox control): &lt;br /&gt;xdXDocument:GetDOM("XML DATASOURCE")/entity/group/field[../../group/@caption = current()]&lt;br /&gt;but when i tried to add condition to the rule: "caption == "Location" (/field/caption) in hope that the location "BOMBAI" will be displayed in the target txtbox it didn't work.&lt;br /&gt;however when removing the condition, it did show the 1st field value "SVR01".&lt;br /&gt;&lt;br /&gt;Anyone knows the correct syntax for this conditioning?&lt;br /&gt;&lt;br /&gt;thanks,</description></item><item><title>Re: Conditional input read from XML file</title><link>https://www.infopathdev.com:443/forums/thread/12183.aspx</link><pubDate>Thu, 20 Apr 2006 17:36:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12183</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12183.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12183</wfw:commentRss><description>Maybe this article will help:&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&lt;/a&gt;</description></item><item><title>Conditional input read from XML file</title><link>https://www.infopathdev.com:443/forums/thread/12093.aspx</link><pubDate>Thu, 20 Apr 2006 13:30:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12093</guid><dc:creator>Tranquil</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12093</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;i'm trying to read data to textboxes from an XML file in the following fashion:&lt;br /&gt;i'm reading a certain tag value from the xml file into a COMBOBOX (list of server names). &lt;br /&gt;&lt;br /&gt;What i want is this: after choosing a certain name in the combo box i want to display certain values in textboxes, these values appear in a subtree in the xml file. meaning that i want to connect the values in the textbox to the specific choosen value in the combobox.&lt;br /&gt;&lt;br /&gt;Here is a snippet of the XML:&lt;br /&gt;- &amp;lt;group caption="BAGIRA"&amp;gt;&lt;br /&gt;    &amp;lt;field key="C0" caption="Search code"&amp;gt;BAGIRA&amp;lt;/field&amp;gt; &lt;br /&gt;    &amp;lt;field key="C1" caption="Type"&amp;gt;Print Server&amp;lt;/field&amp;gt;  &lt;br /&gt;    &amp;lt;field key="C2" caption="Model"&amp;gt;AXi&amp;lt;/field&amp;gt; &lt;br /&gt;    &amp;lt;field key="C3" caption="Location"&amp;gt;MEXICO&amp;lt;/field&amp;gt; &lt;br /&gt;  &amp;lt;/group&amp;gt;&lt;br /&gt;&lt;br /&gt;Example for the action:&lt;br /&gt;&lt;br /&gt;1. choose "BAGIRA" from the combo box (list of the group caption) &amp; then displaying the following values in textboxes: &lt;br /&gt;Location: Mexico&lt;br /&gt;Type:     Print Server&lt;br /&gt;Model:    Axi&lt;br /&gt;&lt;br /&gt;Thank you                     &lt;br /&gt;</description></item></channel></rss>