Hire is my code:
CREATE(xmlDoc);
xmlMgt.SetNormalCase;
xmlProcessingInst:=xmlDoc.createProcessingInstruction(‘xml’,‘version=“1.0” encoding=“UTF-8” standalone=“yes”’);
CurrNode := xmlDoc.appendChild(xmlProcessingInst);
CurrNode := xmlDoc.createElement(‘WEBUSER’);
CurrNode := xmlDoc.appendChild(CurrNode);
xmlMgt.AddElement(CurrNode,‘User’,’’,’’,NewChild);
CurrNode1:=NewChild;
xmlMgt.AddElement(CurrNode1,‘Code’,‘Test/123’,’’,NewChild);
xmlMgt.AddElement(CurrNode1,‘Email’,‘myemail@dot.com’,’’,NewChild);
XML lool like this:
<?xml version="1.0" standalone="yes"?>Test/123
But, I need this:
<?xml version="1.0" standalone="yes"?>**<![CDATA[**
Test/123**]]>**
**<![CDATA[**
myemail@dot.com**]]>**
Thanks
Damjan