T
tadhgc
Hi
I get the following error message when I try to attach a file:
"'#PCDATA' is in nil content."
I am using the "ToBase64String" to convert the text file to a base64
string. I have verified that the conversion works correctly.
Then (and this may be what I am doing wrong) I am assigning the "text"
property of my IXMLDOMNode to this base64 string.
So my code is something like:
IXMLDOMNode oLogFileAttachment =
thisXDocument.DOM.selectSingleNode("//my:StdBVTLog");
...
//do file conversion to Base64
// return Base64 string
oLogFileAttachment.text = Base64Str;
attribute.
To quote: "When this attribute is set to true, any text value of the
XML node produces XML that is not valid. Therefore, Microsoft Office
InfoPath does not accept the value, and you receive the error message."
Since I believe this attribute is ONLY saved to the XML when a file is
not attached then it would imply that the code I've used to attach the
file has failed.
Can anyone help with this?
thanks
Tadhg
I get the following error message when I try to attach a file:
"'#PCDATA' is in nil content."
I am using the "ToBase64String" to convert the text file to a base64
string. I have verified that the conversion works correctly.
Then (and this may be what I am doing wrong) I am assigning the "text"
property of my IXMLDOMNode to this base64 string.
So my code is something like:
IXMLDOMNode oLogFileAttachment =
thisXDocument.DOM.selectSingleNode("//my:StdBVTLog");
...
//do file conversion to Base64
// return Base64 string
oLogFileAttachment.text = Base64Str;
seen that this error is generated due to the "xsi:nil="true""From having a quick search for this error message on the internet, I've
attribute.
To quote: "When this attribute is set to true, any text value of the
XML node produces XML that is not valid. Therefore, Microsoft Office
InfoPath does not accept the value, and you receive the error message."
Since I believe this attribute is ONLY saved to the XML when a file is
not attached then it would imply that the code I've used to attach the
file has failed.
Can anyone help with this?
thanks
Tadhg