[C#] '#PCDATA' is NULL-Content - InfoPath Dev
in

InfoPath Dev

[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: Previous Next
  • 10-25-2005 04:07 AM

    [C#] '#PCDATA' is NULL-Content

    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

    Re: [C#] '#PCDATA' is NULL-Content

    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

    Re: [C#] '#PCDATA' is NULL-Content

    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.