[C#] '#PCDATA' is NULL-Content - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » [C#] '#PCDATA' is NULL-Content [C#] '#PCDATA' is NULL-Content Last post 10-27-2005 04:53 AM by Osiris86. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-25-2005 04:07 AM Osiris86 Joined on 09-20-2005 Posts 12 [C#] '#PCDATA' is NULL-Content Reply Contact I have a interesting error:'#PCDATA' is Null-Content:and then follows a URL.The error comes when i try to insert a date in a datebox. I do that like this:thisXDocument.DOM.selectSingleNode("//my:Beginn").text = strbeginn;Don´t know why this error occurs. Hope you can help me.Greez Osiris 10-25-2005 06:32 AM In reply to franck Joined on 10-03-2005 USA Posts 310 Re: [C#] '#PCDATA' is NULL-Content Mark as Not AnswerMark as Answer... Reply Contact Hi,Before trying to set your date value by code, you need to use:IXMLDOMNode oNode = thisXDocument.DOM.selectSingleNode("//my:Begin");oNode.attributes.removeNamedItem("xsi:nil");Regards,Franck Dauché 10-27-2005 04:53 AM In reply to Osiris86 Joined on 09-20-2005 Posts 12 Re: [C#] '#PCDATA' is NULL-Content Mark as Not AnswerMark as Answer... Reply Contact Thanks, that works but now there is a ugly red border around the date-field. The same is around it if you input a invalid date. Now how i can "delete" (sorry dont know the right english word) it? Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.