SutapaDasgupta
December 18th, 2002, 07:15 PM
Hello,
I am creating XML on fly and my data is stored in WTL::CString object and this data is having some Binary data
e.g.
These are the steps I do to create my XML and "strFailedDesc" is WTL::CString object and contains binary data.
sipNode = m_sipXMLDoc->createElement(_bstr_t("FailedDesc"));
strFailedTransactionXML = "<![CDATA[";
strFailedTransactionXML += strFailedDesc;
strFailedTransactionXML += "]]>";
sipNode->text = _bstr_t(strFailedTransactionXML) ;
sipNode->text = _bstr_t(strFailedTransactionXML) ; ..This soperation falies and gives error:
"Code = 80004005, Message = Unspecified error Source = msxml4.dll Description = An invalid character was found in text content."
This works perfectly well when there is no binary data in "strFailedDesc"
I am new in XML programming, Can somebody tell me why this error is comming and what is the way around.
Thanks
I am creating XML on fly and my data is stored in WTL::CString object and this data is having some Binary data
e.g.
These are the steps I do to create my XML and "strFailedDesc" is WTL::CString object and contains binary data.
sipNode = m_sipXMLDoc->createElement(_bstr_t("FailedDesc"));
strFailedTransactionXML = "<![CDATA[";
strFailedTransactionXML += strFailedDesc;
strFailedTransactionXML += "]]>";
sipNode->text = _bstr_t(strFailedTransactionXML) ;
sipNode->text = _bstr_t(strFailedTransactionXML) ; ..This soperation falies and gives error:
"Code = 80004005, Message = Unspecified error Source = msxml4.dll Description = An invalid character was found in text content."
This works perfectly well when there is no binary data in "strFailedDesc"
I am new in XML programming, Can somebody tell me why this error is comming and what is the way around.
Thanks