<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: XML data source - format changed</title><link>https://www.infopathdev.com:443/forums/thread/116253.aspx</link><pubDate>Tue, 09 May 2017 20:55:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116253</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116253</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Worst XPath EVER. Here&amp;#39;s from a test form I set up:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20-BAD&amp;quot;)/ns1:webRowSet/ns1:data/ns1:currentRow[ns1:columnValue[number(xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20-BAD&amp;quot;)/ns1:webRowSet/ns1:metadata/ns1:column-definition/ns1:column-index[../ns1:column-name = &amp;quot;A.EMPLID&amp;quot;])] = &lt;strong&gt;xdXDocument:get-DOM()/my:myFields/my:field1&lt;/strong&gt; and contains(ns1:columnValue[number(xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20-BAD&amp;quot;)/ns1:webRowSet/ns1:metadata/ns1:column-definition/ns1:column-index[../ns1:column-name = &amp;quot;C.DESCR&amp;quot;])], &amp;quot;- AP&amp;quot;)]/ns1:columnValue[number(xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20-BAD&amp;quot;)/ns1:webRowSet/ns1:metadata/ns1:column-definition/ns1:column-index[../ns1:column-name = &amp;quot;C.POSITION_NBR&amp;quot;])]&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-right:0px;" dir="ltr"&gt;For you, the&amp;nbsp;bold text&amp;nbsp;needs to&amp;nbsp;change to your XPath:&amp;nbsp;&amp;nbsp;xdXDocument:get-DOM()/my:myFields/my:requestorGrp/my:ReqEmplID&lt;/p&gt;&lt;p style="margin-right:0px;" dir="ltr"&gt;I&amp;#39;ll add that this is pretty slow to return a result in my simple test form. There may be a way to optimize it - however, when I tried to use relative paths to the column-index fields I wasn&amp;#39;t getting any results, and figured this would at least give you a starting point. :)&lt;/p&gt;</description></item><item><title>Re: XML data source - format changed</title><link>https://www.infopathdev.com:443/forums/thread/116251.aspx</link><pubDate>Tue, 09 May 2017 18:28:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116251</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116251</wfw:commentRss><description>Oh wow. That data structure is ... ick. Can you attach a sample XML file (replace any personal data, of course) or email me one? Looking at the schema I don&amp;#39;t see any way to association the repeating column value field back to the schema to figure out which instance you want.</description></item><item><title>Re: XML data source - format changed</title><link>https://www.infopathdev.com:443/forums/thread/116249.aspx</link><pubDate>Tue, 09 May 2017 18:10:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116249</guid><dc:creator>SusanP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116249.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116249</wfw:commentRss><description>&lt;p&gt;Previously, using the simple-format XML data source, I queried the entire data source, then set a field to &lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;SimpleXML&amp;quot;)/query/row/C.POSITION_NBR[../A.EMPLID = xdXDocument:get-DOM()/my:myFields/my:requestorGrp/my:ReqEmplID and contains(../C.DESCR, &amp;quot;- AP&amp;quot;)]&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;using complicated XML structure, how do I&amp;nbsp;set field to &lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20_ALL-BAD&amp;quot;)/ns1:webRowSet/ns1:data/ns1:currentRow/ns1:columnValue[../../../ns1:metadata/ns1:column-definition/ns1:column-label = &amp;quot;C.POSITION_NBR&amp;quot;] &lt;br /&gt;&amp;nbsp; &lt;em&gt;from the same row where&lt;/em&gt; &lt;br /&gt;xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20_ALL-BAD&amp;quot;)/ns1:webRowSet/ns1:data/ns1:currentRow/ns1:columnValue[../../../ns1:metadata/ns1:column-definition/ns1:column-label = &amp;quot;A.EMPLID&amp;quot;] = xdXDocument:get-DOM()/my:myFields/my:requestorGrp/my:ReqEmplID&lt;br /&gt;&amp;nbsp; &lt;em&gt;and&lt;/em&gt;&lt;br /&gt;contains(xdXDocument:GetDOM(&amp;quot;UTA_HR_UTA20_ALL-BAD&amp;quot;)/ns1:webRowSet/ns1:data/ns1:currentRow/ns1:columnValue[../../../ns1:metadata/ns1:column-definition/ns1:column-label = &amp;quot;C.DESCR&amp;quot;], &amp;quot;- AP&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir="ltr"&gt;MANY THANKS FOR ANY GUIDANCE YOU CAN OFFER!&amp;nbsp; --Susan&lt;/p&gt;</description></item><item><title>Re: XML data source - format changed</title><link>https://www.infopathdev.com:443/forums/thread/116247.aspx</link><pubDate>Tue, 09 May 2017 17:04:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116247</guid><dc:creator>SusanP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116247.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116247</wfw:commentRss><description>&lt;p&gt;Realized that I have to create new data connection since structure is different.&amp;nbsp; I was able to create data connection with no error.&amp;nbsp; Now have to figure out how to retrieve data from it&amp;nbsp;and rework my rules.&amp;nbsp; Maybe it&amp;#39;s like reading the data that comes from GetUserProfile web service - will give that a try.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: XML data source - format changed</title><link>https://www.infopathdev.com:443/forums/thread/116234.aspx</link><pubDate>Mon, 08 May 2017 15:11:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116234</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116234</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So - you get an error when you try to connect to the XML file? What is the error? Or is the issue that the schema is hard to work with because of it coming back as a repeating structure and the data being all in tags w/ columnValue for the name?&lt;/p&gt;</description></item><item><title>XML data source - format changed</title><link>https://www.infopathdev.com:443/forums/thread/116223.aspx</link><pubDate>Fri, 05 May 2017 22:26:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116223</guid><dc:creator>SusanP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116223.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116223</wfw:commentRss><description>&lt;p dir="ltr"&gt;&amp;nbsp;My InfoPath 2010 browser form utilizes a data connection to an XML file.&amp;nbsp; The simple little file used to look like this:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p dir="ltr"&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;query xsi:noNamespaceSchemaLocation=&amp;quot;&amp;quot; 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; queryname=&amp;quot;UTA_HR_UTA20_ALL&amp;quot; numrows=&amp;quot;747&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;row rownumber=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;F.BUSINESS_UNIT&amp;gt;&lt;br /&gt;![CDATA[UTA20]]&amp;gt;&lt;br /&gt;&amp;lt;/F.BUSINESS_UNIT&amp;gt;&lt;br /&gt;&amp;lt;F.DESCR&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[College of Nursing]]&amp;gt;&lt;br /&gt;&amp;lt;/F.DESCR&amp;gt;&lt;br /&gt;&amp;lt;A.EMPLID&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[1000036503]]&amp;gt;&lt;br /&gt;&amp;lt;/A.EMPLID&amp;gt;&lt;br /&gt;&amp;lt;E.FIRST_NAME&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[Mary]]&amp;gt;&lt;br /&gt;&amp;lt;/E.FIRST_NAME&amp;gt;&lt;/p&gt;&lt;p&gt;etc.&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir="ltr"&gt;Recent changes to our PeopleSoft/Oracle setup now render that same query like this:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p dir="ltr"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;webRowSet xmlns=&amp;quot;&lt;a href="http://java.sun.com/xml/ns/jdbc"&gt;http://java.sun.com/xml/ns/jdbc&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;properties&amp;gt;&lt;br /&gt;&amp;lt;escape-processing&amp;gt;true&amp;lt;/escape-processing&amp;gt;&lt;br /&gt;&amp;lt;fetch-direction&amp;gt;1000&amp;lt;/fetch-direction&amp;gt;&lt;br /&gt;&amp;lt;fetch-size&amp;gt;0&amp;lt;/fetch-size&amp;gt;&lt;br /&gt;&amp;lt;isolation-level&amp;gt;1&amp;lt;/isolation-level&amp;gt;&lt;br /&gt;&amp;lt;key-columns/&amp;gt;&lt;br /&gt;&amp;lt;map/&amp;gt;&lt;br /&gt;&amp;lt;max-field-size&amp;gt;0&amp;lt;/max-field-size&amp;gt;&lt;br /&gt;&amp;lt;max-rows&amp;gt;0&amp;lt;/max-rows&amp;gt;&lt;br /&gt;&amp;lt;query-timeout&amp;gt;0&amp;lt;/query-timeout&amp;gt;&lt;br /&gt;&amp;lt;read-only&amp;gt;true&amp;lt;/read-only&amp;gt;&lt;br /&gt;&amp;lt;show-deleted&amp;gt;false&amp;lt;/show-deleted&amp;gt;&lt;br /&gt;&amp;lt;table-name/&amp;gt;&lt;br /&gt;&amp;lt;/properties&amp;gt;&lt;br /&gt;&amp;lt;metadata&amp;gt;&lt;br /&gt;&amp;lt;column-count&amp;gt; 19&amp;lt;/column-count&amp;gt;&lt;br /&gt;&amp;lt;column-definition&amp;gt;&lt;br /&gt;&amp;lt;column-index&amp;gt;1&amp;lt;/column-index&amp;gt;&lt;br /&gt;&amp;lt;auto-increment&amp;gt;false&amp;lt;/auto-increment&amp;gt;&lt;br /&gt;&amp;lt;case-sensitive&amp;gt;false&amp;lt;/case-sensitive&amp;gt;&lt;br /&gt;&amp;lt;currency&amp;gt;false&amp;lt;/currency&amp;gt;&lt;br /&gt;&amp;lt;nullable&amp;gt;0&amp;lt;/nullable&amp;gt;&lt;br /&gt;&amp;lt;signed&amp;gt;false&amp;lt;/signed&amp;gt;&lt;br /&gt;&amp;lt;searchable&amp;gt;false&amp;lt;/searchable&amp;gt;&lt;br /&gt;&amp;lt;column-display-size&amp;gt;0&amp;lt;/column-display-size&amp;gt;&lt;br /&gt;&amp;lt;column-label&amp;gt;Unit&amp;lt;/column-label&amp;gt;&lt;br /&gt;&amp;lt;column-name&amp;gt;F.BUSINESS_UNIT&amp;lt;/column-name&amp;gt;&lt;br /&gt;&amp;lt;schema-name/&amp;gt;&lt;br /&gt;&amp;lt;column-precision&amp;gt;0&amp;lt;/column-precision&amp;gt;&lt;br /&gt;&amp;lt;column-scale&amp;gt;0&amp;lt;/column-scale&amp;gt;&lt;br /&gt;&amp;lt;table-name/&amp;gt;&lt;br /&gt;&amp;lt;catalog-name/&amp;gt;&lt;br /&gt;&amp;lt;column-type&amp;gt;12&amp;lt;/column-type&amp;gt;&lt;br /&gt;&amp;lt;column-type-name&amp;gt;VARCHAR&amp;lt;/column-type-name&amp;gt;&lt;br /&gt;&amp;lt;/column-definition&amp;gt;&lt;br /&gt;and lots more column definitions, and finally data that looks like&lt;br /&gt;&amp;lt;data&amp;gt;&lt;br /&gt;&amp;lt;currentRow&amp;gt;&lt;br /&gt;&amp;lt;columnValue&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[UTA20]]&amp;gt;&lt;br /&gt;&amp;lt;/columnValue&amp;gt;&lt;br /&gt;&amp;lt;columnValue&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[College of Nursing]]&amp;gt;&lt;br /&gt;&amp;lt;/columnValue&amp;gt;&lt;br /&gt;&amp;lt;columnValue&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[1000036503]]&amp;gt;&lt;br /&gt;&amp;lt;/columnValue&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Neither InfoPath Form Services 2010 or SharePoint 2010 data-view will read it the new format.&amp;nbsp; Is there a way to convert it back to the old/simpler format?&amp;nbsp; Thank you!&lt;/p&gt;&lt;p&gt;--Susan&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>