<?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>nil and the Changing event</title><link>https://www.infopathdev.com:443/forums/thread/35695.aspx</link><pubDate>Thu, 11 Dec 2008 19:56:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35695</guid><dc:creator>ACrush</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35695</wfw:commentRss><description>&lt;p&gt;OK, but when you have to remove or reapply the xsi:nil attribute in a &lt;em&gt;Changing&lt;/em&gt; event handler, the &lt;em&gt;Changing &lt;/em&gt;event fires the other time. Is there anything like &lt;em&gt;DisableEventFiring&lt;/em&gt; around to help with that?&lt;/p&gt;</description></item><item><title>Re: Changing Node Values</title><link>https://www.infopathdev.com:443/forums/thread/14237.aspx</link><pubDate>Wed, 18 Jan 2006 04:07:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14237</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14237</wfw:commentRss><description>You probably need to remove the xsi:nil attribute. I use this helper function:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;IXMLDOMNode nNextAction = thisXDocument.DOM.selectSingleNode("my:myFields/my:NextAction");&lt;br /&gt;removeNil(nNextAction).text = "blah";&lt;br /&gt;&lt;br /&gt;public IXMLDOMNode removeNil(IXMLDOMNode n)&lt;br /&gt;{&lt;br /&gt;	//Determine whether the xsi:nil attribute is set for this&lt;br /&gt;	//element. If so, remove the xsi:nil attributes so that&lt;br /&gt;	//the value can be set.&lt;br /&gt;	if (n.selectSingleNode( "@xsi:nil" ) != null)&lt;br /&gt;		n.selectSingleNode( "@xsi:nil" ).text = "false";				&lt;br /&gt;		&lt;br /&gt;	// return the node for convenience&lt;br /&gt;	return n;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Changing Node Values</title><link>https://www.infopathdev.com:443/forums/thread/12753.aspx</link><pubDate>Wed, 18 Jan 2006 03:23:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12753</guid><dc:creator>delu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12753</wfw:commentRss><description>How can I change the value of a text box within my document?&lt;br /&gt;&lt;br /&gt;When I do the following:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;IXMLDOMNode nNextAction = thisXDocument.DOM.selectSingleNode("my:myFields/my:NextAction");&lt;br /&gt;nNextAction.text = "blah";&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;then the value does not stay changed when the document is stored/submitted.&lt;br /&gt;&lt;br /&gt;When I do:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;nNextAction.nodeValue = "Review";&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;then I get a security exception :-/</description></item></channel></rss>