<?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 XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/67665.aspx</link><pubDate>Wed, 22 Jun 2011 21:28:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67665</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67665.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=67665</wfw:commentRss><description>&lt;p&gt;Opening in design after moving is &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; the most intuitive thing - I mean, you don&amp;#39;t have to open an Excel or Word file in a different, special fashion after moving. :-}&lt;/p&gt;</description></item><item><title>Re: How to Query XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/67661.aspx</link><pubDate>Wed, 22 Jun 2011 20:02:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67661</guid><dc:creator>gleapman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=67661</wfw:commentRss><description>&lt;p&gt;Thanks.&amp;nbsp; That worked.&amp;nbsp; For the record, I had saved it locally and double clicked on the file and got the error message.&amp;nbsp; I&amp;#39;m in my first week of working in InfoPath and feeling my way.&lt;/p&gt;</description></item><item><title>Re: How to Query XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/67660.aspx</link><pubDate>Wed, 22 Jun 2011 19:04:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67660</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67660.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=67660</wfw:commentRss><description>&lt;p&gt;You can&amp;#39;t just open a template that has been moved. Save it locally, right click it, and open it in design mode. From there you can resave it and it will recover from its current confusion.&lt;/p&gt;</description></item><item><title>Re: How to Query XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/67659.aspx</link><pubDate>Wed, 22 Jun 2011 18:55:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67659</guid><dc:creator>gleapman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=67659</wfw:commentRss><description>&lt;p&gt;Skarn - more on the error message: Forms that require the domain permission level contain features that access information on a network, such as data connections, linked images, and code.&lt;/p&gt;</description></item><item><title>Re: How to Query XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/67658.aspx</link><pubDate>Wed, 22 Jun 2011 18:52:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67658</guid><dc:creator>gleapman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=67658</wfw:commentRss><description>&lt;p&gt;Skarn - cannot open your attachment - Error: &amp;quot;This form cannot be opened because it requires the domain permission level and it currently has restricted permission.&amp;nbsp; To fix this problem, open the form from the location it was published to.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It then give the published location as a folder on your c-drive.&lt;/p&gt;</description></item><item><title>Re: How to Query XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/66047.aspx</link><pubDate>Wed, 20 Apr 2011 11:25:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66047</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=66047</wfw:commentRss><description>&lt;p&gt;Hm. interesting proposal. Don&amp;#39;t really know why you would need to do this though.&lt;/p&gt;&lt;p&gt;But I love a bit of fiddle for fiddles sake.&lt;/p&gt;&lt;p&gt;Working example attached! :-) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Gonna explain why you need this generic/dynamic query method?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Query XML File in InfoPath With XPath, Filtering on my:FieldName</title><link>https://www.infopathdev.com:443/forums/thread/65565.aspx</link><pubDate>Tue, 29 Mar 2011 17:06:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65565</guid><dc:creator>RKEMN2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=65565</wfw:commentRss><description>&lt;p&gt;Using InfoPath 2010, I want to retrieve a value from an xml file based on the value of a field in my InfoPath form. I&amp;#39;m using this queried value to set a field value using a Rule on Form Load.&lt;/p&gt;
&lt;p&gt;This hard-coded XPath retrieves the desired value:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;XmlFileName&amp;quot;)//GroupB/NodeWithTextValue[@AttributeX=&amp;#39;DDD&amp;#39;]&lt;/p&gt;
&lt;p&gt;In the above XPath string, I&amp;#39;d like to use form field values for &amp;#39;GroupB&amp;#39; &amp;amp; &amp;#39;DDD&amp;#39;&lt;/p&gt;
&lt;p&gt;Assigning just one value in the path with a form field, this validates using the Verify Formula, but does not set the field value as before:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;XmlFileName&amp;quot;)//my:FieldName1/NodeWithTextValue[@AttributeX=&amp;#39;DDD&amp;#39;]&lt;/p&gt;
&lt;p&gt;This also does not work:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;XmlFileName&amp;quot;)/RootNode/*[. = xdXDocument:get-DOM()/my:myFields/my:FieldName1]&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried several things using the InfoPath function UI to generate the XPath syntax with this filter on a form field, but no success.&lt;br /&gt;Please suggest an XPath syntax that would accomplish this or the steps using the UI to accomplish this.&lt;br /&gt;Thanks&lt;/p&gt;
&lt;p&gt;XML structure:&lt;br /&gt;&amp;lt;RootNode&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;GroupA&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;NodeWithTextValue AttributeX=&amp;quot;GGG&amp;quot;&amp;gt;ValueA1&amp;lt;/NodeWithTextValue&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;NodeWithTextValue AttributeX=&amp;quot;HHH&amp;quot;&amp;gt;ValueA2&amp;lt;/NodeWithTextValue&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/GroupA&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;GroupB&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;NodeWithTextValue AttributeX=&amp;quot;FFF&amp;quot;&amp;gt;ValueB1&amp;lt;/NodeWithTextValue&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;NodeWithTextValue AttributeX=&amp;quot;DDD&amp;quot;&amp;gt;ValueB2&amp;lt;/NodeWithTextValue&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/GroupB&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;GroupC&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/p&gt;
&lt;p&gt;&amp;lt;/RootNode&amp;gt;&lt;/p&gt;</description></item></channel></rss>