<?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: xsi:nil question</title><link>https://www.infopathdev.com:443/forums/thread/57496.aspx</link><pubDate>Fri, 30 Jul 2010 21:22:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57496</guid><dc:creator>AzuDaioh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57496.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57496</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;
Thanks Jimmy.  That works.  I removed it from every date and integer controls.  ^^</description></item><item><title>Re: xsi:nil question</title><link>https://www.infopathdev.com:443/forums/thread/57464.aspx</link><pubDate>Fri, 30 Jul 2010 04:05:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57464</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57464.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57464</wfw:commentRss><description>&lt;p&gt;You most likely need to remove the nil attributes from IssueDT, BgnDT, EndDT, ChkNum, etc., not from oNewRow.&lt;/p&gt;</description></item><item><title>xsi:nil question</title><link>https://www.infopathdev.com:443/forums/thread/57461.aspx</link><pubDate>Thu, 29 Jul 2010 19:12:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57461</guid><dc:creator>AzuDaioh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57461.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57461</wfw:commentRss><description>edit:
I think I may have found the solution to this problem from:
http://blog.vishalon.net/index.php/infopath-a-proper-way-to-blank-out-whole-number-date-using-jscript
Thank you all!!!
-------------------

&lt;p&gt;Hello Everyone, &lt;/p&gt;
&lt;p&gt;Im hoping someone could help me out here. I&amp;#39;m using the code found here: &lt;a href="http://www.infopathdev.com/blogs/matt/archive/2005/11/29/Repeat-Table-Headers-Across-Multiple-Printed-Pages.aspx"&gt;http://www.infopathdev.com/blogs/matt/archive/2005/11/29/Repeat-Table-Headers-Across-Multiple-Printed-Pages.aspx&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m attempting to make the code work on my form where there is no secondary source data. Here are my changes:&lt;/p&gt;
&lt;p&gt;I replaced the following lines of codes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;// Set up access to secondary data source.&lt;br /&gt;var domVehicles = XDocument.GetDOM(&amp;quot;Vehicles&amp;quot;); &lt;br /&gt;// Source nodes. &lt;br /&gt;var oVehicles = domVehicles.selectNodes(&amp;quot;/Vehicles/Vehicle&amp;quot;);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;With the following codes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;// Set up access to secondary data source. &lt;br /&gt;//var domTable = XDocument.GetDOM(&amp;quot;/my:myFields&amp;quot;); &lt;br /&gt;// Source nodes &lt;br /&gt;var oVehicles = XDocument.DOM.selectNodes(&amp;quot;/my:myFields/my:TableData/my:RowData&amp;quot;); &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I replaced these lines:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;oNewRow.selectSingleNode(&amp;quot;my:Year&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;@year&amp;quot;).nodeValue;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;oNewRow.selectSingleNode(&amp;quot;my:Make&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;@make&amp;quot;).nodeValue;&lt;br /&gt;oNewRow.selectSingleNode(&amp;quot;my:Model&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;@model&amp;quot;).nodeValue;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;oNewRow.selectSingleNode(&amp;quot;my:Description&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;@description&amp;quot;).nodeValue;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;With these:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;oNewRow.selectSingleNode(&amp;quot;my:IssueDT&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;my:deIssueDT&amp;quot;).text;&lt;br /&gt;oNewRow.selectSingleNode(&amp;quot;my:BgnDT&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;my:deBgnDT&amp;quot;).text;&lt;br /&gt;oNewRow.selectSingleNode(&amp;quot;my:EndDT&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;my:deEndDT&amp;quot;).text;&lt;br /&gt;oNewRow.selectSingleNode(&amp;quot;my:ChkNum&amp;quot;).text = oSrc.selectSingleNode(&amp;quot;my:deChkNum&amp;quot;).text;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The code works if I set my fields to string. However I need to change some of the fields to&amp;nbsp;&amp;#39;date&amp;#39; and &amp;#39;whole number&amp;quot; fields. But after I changed from string fields, I get the &amp;quot;#PCData is in Nil content&amp;quot; error message.&amp;nbsp; I&amp;#39;m using Infopath 2003 sp1. &lt;/p&gt;
&lt;p&gt;I tried removing the xsi:nil attributes using this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;if (oNewRow.getAttribute(&amp;quot;xsi:nil&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oNewRow.removeAttribute(&amp;quot;xsi:nil&amp;quot;);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I tried it in many places changing the oNewRow...but I keep getting the error message.&amp;nbsp; Can someone please point out the proper location/syntax to fix the #PCData error message?!? Any help is greatly appreciated.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#333399"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>