<?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>Re: Optional Section JScript</title><link>https://www.infopathdev.com:443/forums/thread/30959.aspx</link><pubDate>Tue, 29 Jul 2008 07:57:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30959</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30959.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=30959</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the code,&lt;/p&gt;
&lt;p&gt;var sXml = &amp;quot;&amp;lt;my:group1 xmlns:my=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-13T11:32:39&amp;#39;&amp;gt;&amp;lt;my:field1/&amp;gt;&amp;lt;/my:group1&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;var xmlDoc = XDocument.CreateDOM()&lt;/p&gt;
&lt;p&gt;xmlDoc.async = false&lt;/p&gt;
&lt;p&gt;xmlDoc.load(sXml)&lt;/p&gt;
&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;//my:myFields&amp;quot;).appenChild(xmlDoc.documentElement)&lt;/p&gt;</description></item><item><title>Optional Section JScript</title><link>https://www.infopathdev.com:443/forums/thread/30956.aspx</link><pubDate>Tue, 29 Jul 2008 06:16:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30956</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=30956</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;In my form there is an optional section hide by default. I wuold like to open it by&amp;nbsp;Jscript Code. On this forum I forum I found this solutions:&lt;/p&gt;
&lt;p&gt;string sXml = &amp;quot;&amp;lt;my:group1 xmlns:my=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-04-13T11:32:39&amp;#39;&amp;gt;&amp;lt;my:field1/&amp;gt;&amp;lt;/my:group1&amp;gt;&amp;quot;;&lt;br /&gt;IXMLDOMDocument oXml = thisXDocument.CreateDOM();&lt;br /&gt;oXml.async = false;&lt;br /&gt;oXml.loadXML(sXml);&lt;br /&gt;getNode(&amp;quot;//my:myFields&amp;quot;).appendChild(oXml.documentElement);&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;but it is in c#. Could you help me to do the same thing but with jscipt?&lt;br /&gt;Thank You.&lt;/p&gt;
&lt;p&gt;Giorgio&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>