<?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: accessing template.xml with vscript</title><link>https://www.infopathdev.com:443/forums/thread/64171.aspx</link><pubDate>Mon, 14 Feb 2011 07:32:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64171</guid><dc:creator>garciaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64171.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64171</wfw:commentRss><description>&lt;p&gt;Thank you for your reply,&lt;/p&gt;&lt;p&gt;When a node is defined as mandatory, it&amp;#39;s not present in main data source xml (logical).&lt;/p&gt;&lt;p&gt;We can append this on execution with contextual or top menus. I want to do the same thing with vbscript.&lt;/p&gt;&lt;p&gt;I would like to append this node using cloneNode function. (in my case, i can&amp;#39;t use executeAction function). But where can i find the original node to clone ?&lt;/p&gt;&lt;p&gt;This node is present in template.xml witch contains all nodes. How to access it ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: accessing template.xml with vscript</title><link>https://www.infopathdev.com:443/forums/thread/64145.aspx</link><pubDate>Fri, 11 Feb 2011 16:43:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64145</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64145</wfw:commentRss><description>&lt;p&gt;You can access the and make changes to the&amp;nbsp;main data source in code by&amp;nbsp;using XDocument.DOM.&amp;nbsp; Is that all you&amp;#39;re talking about?&lt;/p&gt;
&lt;p&gt;However, it sounds like you should be able to accomplish what you&amp;#39;re describing by using the Default Values dialog ahead of time.&amp;nbsp; I don&amp;#39;t think you should need code to accomplish this.&lt;/p&gt;</description></item><item><title>accessing template.xml with vscript</title><link>https://www.infopathdev.com:443/forums/thread/64143.aspx</link><pubDate>Fri, 11 Feb 2011 16:33:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64143</guid><dc:creator>garciaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64143</wfw:commentRss><description>&lt;p&gt;Hy all,&lt;/p&gt;&lt;p&gt;Is it possible to access template.xml (inside the xsn) with script like a secondary data source ?&lt;/p&gt;&lt;p&gt;Template.xml is visible only when i extract the content of xsn. It is not present in secondary data source list.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I would like to add mandatory nodes with script. These nodes are mandatory in my form, so, they does not exist on load.I know how to access a secondary data source
 with script, but not to template.&lt;/p&gt;&lt;p&gt;xml which contains all xml nodes of main datasource.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;thanks and sorry for my english &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>