How to create XML using CDATASection |
Post Reply |
Author | |
bunei
Newbie Joined: 28 June 2012 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 20 April 2023 at 9:47pm |
Hi All,
I'm using CXTPPropExchangeXMLNode to create XML. I want to add a CDATA section to that XML. CMyPropExchangeXMLNode px(FALSE, 0, "data"); struct XTPXML::IXMLDOMCDATASection* _result = 0; _variant_t value = "<params>CDATA Section</params>"; CXTPDOMDocumentPtr xmlDocumentPtr = px.GetDocument(); HRESULT hr = xmlDocumentPtr->createCDATASection((_bstr_t)value, &_result); CXTPDOMNodePtr xmlEntryPtr = px.GetEntryNode("www", TRUE); XTPXML::IXMLDOMNode *pChildOut = NULL; hr = xmlEntryPtr->appendChild((XTPXML::IXMLDOMNode*)_result, &pChildOut); (hr = 0x80004005) px.SaveToFile("test.xml"); How to create XML using CDATASection please.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |