<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: attaching a file to xml</title><link>https://www.infopathdev.com:443/forums/thread/57050.aspx</link><pubDate>Sat, 17 Jul 2010 13:24:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57050</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57050.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57050</wfw:commentRss><description>&lt;p&gt;This might be a &amp;#39;lateral&amp;#39; idea - but why not add a view to your template which has two fields displayed and one&amp;nbsp;&amp;#39;support&amp;#39; field.&lt;/p&gt;
&lt;p&gt;The first field should hold your &amp;#39;xml snippet&amp;#39; (just set in code the way you currently save to file&amp;#39; and the second a file attachment field.&lt;br /&gt;Now have a button which sends the form by email - and put a rule before the submit which sets the &amp;#39;support&amp;#39; field to &amp;#39;true&amp;#39;.&lt;/p&gt;
&lt;p&gt;Have an Open rule on your template which when &amp;#39;support&amp;#39; field is true - switch to XML snippet and attachment view.&lt;/p&gt;
&lt;p&gt;Now you can send your required information and attachment using the form itself - via a built in Infopath submit.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;(don&amp;#39;t forget to set the &amp;#39;support&amp;#39; field back to false so the original form behaves properly).&lt;/p&gt;</description></item><item><title>attaching a file to xml</title><link>https://www.infopathdev.com:443/forums/thread/55897.aspx</link><pubDate>Tue, 15 Jun 2010 18:59:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55897</guid><dc:creator>rcant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55897.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55897</wfw:commentRss><description>&lt;p&gt;I have a business requirement where I have to create xml snippet of my form and attach a external MHT file to the xml.&amp;nbsp; Any have any thoughts on that.&lt;/p&gt;&lt;p&gt;My code behind is jscript. I can create the xml file with with a subset of data from the main form and save that locally but I have not found a way in jscript to&amp;nbsp; attach a file to the xml. I am not sure that jscript has base64encode functioanlity that i can add to a cdata element.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any help is gretly appreciated.&lt;/p&gt;&lt;p&gt;I want export a view to MHT and attach that to the xml subset file i have.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>