<?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: nil attribute and related errors</title><link>https://www.infopathdev.com:443/forums/thread/11414.aspx</link><pubDate>Thu, 05 Apr 2007 17:28:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11414</guid><dc:creator>MylesRip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11414</wfw:commentRss><description>More information and correction...&lt;br /&gt;&lt;br /&gt;The connection with the nil attribute was merely coincidental.  More experimentation shows that the "white space" problem shows up whenever I try to use XmlWriter.WriteNode(XPathNavigator,bool) passing in an XPathNavigator for a node that has a field which has not been assigned a value.  &lt;br /&gt;Is this by design or is this a bug?&lt;br /&gt;</description></item><item><title>nil attribute and related errors</title><link>https://www.infopathdev.com:443/forums/thread/6170.aspx</link><pubDate>Wed, 04 Apr 2007 22:42:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6170</guid><dc:creator>MylesRip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6170</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have code in a browser-enabled form that clones a node to create a new sibling and then overwrites several values on the new node.  On one of the fields I got the error, “Schema validation found non-data type errors.”  I found a blog from the InfoPath team saying that the error could be caused by a nillable field.  (Here is the link in case you are interested:&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2006/11/28/the-xsi-nil-attribute.aspx&gt;http://blogs.msdn.com/infopath/archive/2006/11/28/the-xsi-nil-attribute.aspx&lt;/a&gt; )  As per the blog entry, I added code to remove the nil attribute.  &lt;br /&gt;&lt;br /&gt;Unfortunately, this caused another problem.  If I then try to clone the new node to create another sibling, I get the error, "Only white space characters should be used."  This error only happens if you try to make a copy of a node that had the nil attribute removed from one of its member elements.  &lt;br /&gt;&lt;br /&gt;Here is an excerpt from the code where the "white space" error shows up.  &lt;br /&gt;&lt;br /&gt;XmlWriter writer = lastChangeOrder.InsertAfter();&lt;br /&gt;writer.WriteNode(lastChangeOrder, true); // &amp;lt;-- Error happens here.&lt;br /&gt;writer.Close();&lt;br /&gt;lastChangeOrder.MoveToNext();&lt;br /&gt;&lt;br /&gt;Any ideas?  Thanks!&lt;br /&gt;</description></item></channel></rss>