<?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: Question about &amp;quot;xsn:nil&amp;quot;</title><link>https://www.infopathdev.com:443/forums/thread/14292.aspx</link><pubDate>Wed, 15 Feb 2006 19:53:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14292</guid><dc:creator>rohan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14292.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14292</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;"xsi:nil" specifies that the node can accept null values. But XML node of integer type cannot accept null.&lt;br /&gt;&lt;br /&gt;Because of this behaviour before assigning an integer value we need to check whether the node as "xsi:nill" attribute set to true and remove it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rohan Reddy</description></item><item><title>Question about "xsn:nil"</title><link>https://www.infopathdev.com:443/forums/thread/12773.aspx</link><pubDate>Tue, 14 Feb 2006 07:44:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12773</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12773</wfw:commentRss><description>I have an InfoPath form that contain 2 text box type &lt;b&gt;Integer&lt;/b&gt;.&lt;br /&gt;I have a button that click on me operate this code (in c#):&lt;br /&gt;&lt;br /&gt;public void CTRL17_5_OnClick(DocActionEvent e)&lt;br /&gt;{&lt;br /&gt;IXMLDOMNode node1 =this.thisXDocument.DOM.selectSingleNode("//my:myFields/my:field1");&lt;br /&gt;IXMLDOMNode node2 =this.thisXDocument.DOM.selectSingleNode("//my:myFields/my:field2");&lt;br /&gt;int num1;&lt;br /&gt;			&lt;br /&gt;num1=Int32.Parse(node1.text);&lt;br /&gt;num1=num1+5;&lt;br /&gt;node2.text=num1.ToString();&lt;br /&gt;			&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I change field2 to be type &lt;b&gt;String &lt;/b&gt;(and not Integer) and It's work well.&lt;br /&gt;But if I change back field2 to by type &lt;b&gt;Integer &lt;/b&gt;I get an Error about "nil" ,After I added this line to the code:&lt;br /&gt;&lt;br /&gt;node2.attributes.removeNamedItem("xsi:nil");&lt;br /&gt;&lt;br /&gt;It's work well.&lt;br /&gt;What is this line mean? and why I need itwhen I operate  assignation on a field type Integer</description></item></channel></rss>