<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to open optional section in jscript</title><link>https://www.infopathdev.com:443/forums/thread/30958.aspx</link><pubDate>Tue, 29 Jul 2008 07:51:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30958</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30958</wfw:commentRss><description>&lt;p&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Here is the code,&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&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;&lt;/span&gt;</description></item><item><title>How to open optional section in jscript</title><link>https://www.infopathdev.com:443/forums/thread/30909.aspx</link><pubDate>Mon, 28 Jul 2008 13:39:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30909</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30909</wfw:commentRss><description>&lt;p&gt;Hi!&lt;br /&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;</description></item></channel></rss>