<?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: Save as question</title><link>https://www.infopathdev.com:443/forums/thread/34429.aspx</link><pubDate>Tue, 18 Nov 2008 13:00:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34429</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34429</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Do you want to set the &lt;a href="mailto:../@CheckNo"&gt;../@CheckNo&lt;/a&gt; field value to the &amp;quot;filename&amp;quot; field?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp; if yes ,Please implement the code given by shiva with a little change &lt;/p&gt;
&lt;p&gt;XMLNode fileNameNode = XDocument.DOM.selectSingleNode(&amp;quot;&amp;lt;FileName node path&amp;gt;&amp;quot;);&lt;br /&gt;XMLNode CheckNode = XDocument.DOM.selectSingleNode(&amp;quot;&amp;lt;checkNo node path&amp;gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;//Here which value you want to set that value need to get first and assign that value to this node&lt;/p&gt;
&lt;p&gt;fileNameNode.text = CheckNode.text;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; what you want is not the above mentioned one ,then please explain clearly about problem so that we can definitely help you.&lt;/p&gt;</description></item><item><title>Re: Save as question</title><link>https://www.infopathdev.com:443/forums/thread/34426.aspx</link><pubDate>Tue, 18 Nov 2008 12:32:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34426</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34426</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First you have to get the node and set the value for it using below the code.&lt;/p&gt;
&lt;p&gt;XMLNode fileNameNode = XDocument.DOM.selectSingleNode(&amp;quot;&amp;lt;FileName node path&amp;gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;//Here which value you want to set that value need to get first and assign that value to this node&lt;/p&gt;
&lt;p&gt;fileNameNode.text = &amp;quot;Node Value&amp;quot;; &lt;/p&gt;</description></item><item><title>Save as question</title><link>https://www.infopathdev.com:443/forums/thread/34391.aspx</link><pubDate>Mon, 17 Nov 2008 21:47:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34391</guid><dc:creator>rbowles</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34391</wfw:commentRss><description>&lt;p&gt;I have a question about some save as code I have listed below.&lt;/p&gt;
&lt;p&gt;Dim txtPath &lt;br /&gt;Dim txtName&lt;br /&gt;txtPath = &amp;quot;c:\&amp;quot; &lt;br /&gt;txtName = &amp;quot;test.xml&amp;quot; &lt;br /&gt;XDocument.SaveAS(txtPath &amp;amp; txtName)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I have a field called filename&lt;br /&gt;how would I set file name equal to &lt;a href="mailto:../@CheckNo"&gt;../@CheckNo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Randy&lt;/p&gt;</description></item></channel></rss>