<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Trick: Clear or reset fields in InfoPath using only 3 lines of code</title>
	<atom:link href="http://www.bizsupportonline.net/blog/2009/08/clear-reset-fields-infopath-3-lines-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bizsupportonline.net/blog/2009/08/clear-reset-fields-infopath-3-lines-code/</link>
	<description>Blog about InfoPath and related technologies such as SharePoint, .NET, and other Microsoft software products.</description>
	<lastBuildDate>Mon, 29 Mar 2010 20:23:18 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: S.Y.M. Wong-A-Ton</title>
		<link>http://www.bizsupportonline.net/blog/2009/08/clear-reset-fields-infopath-3-lines-code/comment-page-1/#comment-12</link>
		<dc:creator>S.Y.M. Wong-A-Ton</dc:creator>
		<pubDate>Thu, 03 Sep 2009 10:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bizsupportonline.net/blog/?p=3478#comment-12</guid>
		<description>Hi Tom,

You can use the same concept, but with the following JScript code:

&lt;code&gt;var initialData;&lt;br/&gt;&lt;br/&gt;
function XDocument::OnLoad(eventObj)
{
&lt;span class=&quot;tab&quot; /&gt;initialData =
&lt;span class=&quot;tab&quot; /&gt;&lt;span class=&quot;tab&quot; /&gt;XDocument.DOM.selectSingleNode(
&lt;span class=&quot;tab&quot; /&gt;&lt;span class=&quot;tab&quot; /&gt;&quot;/my:myFields/my:container&quot;).xml;
}&lt;br/&gt;&lt;br/&gt;
function CTRL3_5::OnClick(eventObj)
{
&lt;span class=&quot;tab&quot; /&gt;// Load the initial saved XML into a DomDocument object
&lt;span class=&quot;tab&quot; /&gt;var xmlDoc = new ActiveXObject(&quot;MSXML2.DomDocument.5.0&quot;)
&lt;span class=&quot;tab&quot; /&gt;xmlDoc.loadXML(initialData);
&lt;span class=&quot;tab&quot; /&gt;// Replace my:container
&lt;span class=&quot;tab&quot; /&gt;var parentNode = XDocument.DOM.selectSingleNode(&quot;/my:myFields&quot;);
&lt;span class=&quot;tab&quot; /&gt;var oldChildNode = parentNode.selectSingleNode(&quot;my:container&quot;);
&lt;span class=&quot;tab&quot; /&gt;parentNode.replaceChild(xmlDoc.documentElement, oldChildNode);
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Tom,</p>
<p>You can use the same concept, but with the following JScript code:</p>
<p><code>var initialData;</p>
<p>function XDocument::OnLoad(eventObj)<br />
{<br />
<span class="tab" />initialData =<br />
<span class="tab" /><span class="tab" />XDocument.DOM.selectSingleNode(<br />
<span class="tab" /><span class="tab" />&quot;/my:myFields/my:container&quot;).xml;<br />
}</p>
<p>function CTRL3_5::OnClick(eventObj)<br />
{<br />
<span class="tab" />// Load the initial saved XML into a DomDocument object<br />
<span class="tab" />var xmlDoc = new ActiveXObject(&quot;MSXML2.DomDocument.5.0&quot;)<br />
<span class="tab" />xmlDoc.loadXML(initialData);<br />
<span class="tab" />// Replace my:container<br />
<span class="tab" />var parentNode = XDocument.DOM.selectSingleNode(&quot;/my:myFields&quot;);<br />
<span class="tab" />var oldChildNode = parentNode.selectSingleNode(&quot;my:container&quot;);<br />
<span class="tab" />parentNode.replaceChild(xmlDoc.documentElement, oldChildNode);<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.bizsupportonline.net/blog/2009/08/clear-reset-fields-infopath-3-lines-code/comment-page-1/#comment-11</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 02 Sep 2009 16:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bizsupportonline.net/blog/?p=3478#comment-11</guid>
		<description>Excellent code...however, how do I do the above using jScript?</description>
		<content:encoded><![CDATA[<p>Excellent code&#8230;however, how do I do the above using jScript?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
