<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>How to report the field labels and values from Infopath XML data source file using XSN file ?</title><link>https://www.infopathdev.com:443/forums/thread/99377.aspx</link><pubDate>Wed, 01 Oct 2014 18:39:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99377</guid><dc:creator>uds2014</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99377.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99377</wfw:commentRss><description>&lt;p&gt;I am new to Infopath and does not have&amp;nbsp;much programming&amp;nbsp;background. I have bunch of XML data source files which I can open using Infopath 2010&amp;nbsp;and see the field&amp;nbsp;labels and field values. For example,&amp;nbsp;label&amp;nbsp;is &amp;quot;State:&amp;quot; and the value is &amp;quot;CA&amp;quot;. XML&amp;nbsp;data source&amp;nbsp;has dates, complex tables,&amp;nbsp;groups, radio buttons, check&amp;nbsp;boxes, free form text and so on. I also have associated XSN file which XML data source file is referring to. From online forums, I got to know that I can change the extension of xsn file&amp;nbsp;to a cab&amp;nbsp;extension and unzip the cab file. After unzipping&amp;nbsp;the cab file, I could see that&amp;nbsp;it&amp;nbsp;had buch of other files such as xsl, xml, xsd, etc. When I open XML data source file in text mode, I find field83 has value &amp;quot;CA&amp;quot;.&amp;nbsp; When I try to find what is field83 in the files extracted from XSN, I found that one of the XSL file has field83 and it has a &amp;lt;div&amp;gt; element which has text &amp;quot;State:&amp;quot;.&lt;/p&gt;
&lt;p&gt;All I need is a flat report (may be a CSV or Excel&amp;nbsp;file will do) which gives&amp;nbsp;me field label (for example &amp;quot;State:&amp;quot;) and the data value (&amp;quot;CA&amp;quot;) only where the data values are present. I don&amp;#39;t require fields which are empty. Or if it is too complex, then I can filter on non-empty fields. Optionally if I can get XPATH of the mapping field name that is even better (For example, /my:myFields/my:field83) Optional fieldname is just for tracking purpose. And this should work on all data types such as groups, tables, radio buttons, etc. For radio button / check boxes, I don&amp;#39;t want selection values such as 1 or 2, but more meaningful as what&amp;nbsp;was checked by user.&lt;/p&gt;
&lt;p&gt;Having described kinda weird requirement, I need a quick help in order to generate these reports for bunch of xml data source files and associated xsn files. Any simple&amp;nbsp;and automated way will be really helpful. If Infopath has some mechnism to export label and data values into Excel, that&amp;nbsp;would be&amp;nbsp;awesome.&amp;nbsp;Looking forward to get some quick and easy ways from all you experts !&lt;/p&gt;
&lt;p&gt;Thanks in advance !&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>