<?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: remove optional section</title><link>https://www.infopathdev.com:443/forums/thread/13417.aspx</link><pubDate>Thu, 04 Aug 2005 14:32:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13417</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13417</wfw:commentRss><description>Sorry for being late, here is the code&lt;br /&gt;&lt;br /&gt;IXMLDOMNode parentNode = thisXDocument.DOM.selectSingleNode("ParentNodeXPath");&lt;br /&gt;IXMLDOMNode childNode = parentNode.selectSingleNode("ChildNodeXPath");&lt;br /&gt;parentNode.removeChild(childNode);&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: remove optional section</title><link>https://www.infopathdev.com:443/forums/thread/13416.aspx</link><pubDate>Fri, 29 Jul 2005 20:26:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13416</guid><dc:creator>jeanpaul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13416</wfw:commentRss><description>Hi Agni:&lt;br /&gt;&lt;br /&gt;Thank you for your reply, do you have any sample code on how to do this?&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: remove optional section</title><link>https://www.infopathdev.com:443/forums/thread/13415.aspx</link><pubDate>Thu, 28 Jul 2005 22:30:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13415</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13415</wfw:commentRss><description>Hi jeanpaul, Welcome to the Forum!&lt;br /&gt; Yes, Other way to do this is to delete the node by writing some code. To delete the node &lt;br /&gt;1. Select the node.&lt;br /&gt;2. Select the parent node.&lt;br /&gt;3. Use Remove child method and delete the node.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>remove optional section</title><link>https://www.infopathdev.com:443/forums/thread/12516.aspx</link><pubDate>Thu, 28 Jul 2005 21:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12516</guid><dc:creator>jeanpaul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12516</wfw:commentRss><description>I am trying to remove an optional section on click of a button using the ExecuteAction, but it only works when the button is inside the optional section...is there a workaround for this</description></item></channel></rss>