Export XML with CU (CDATA problem)

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

myemail@dot.com

But, I need this:

<?xml version="1.0" standalone="yes"?>

**<![CDATA[**Test/123**]]>**

**<![CDATA[**myemail@dot.com**]]>**

Thanks

Damjan

hi,

xml management works with xmldom objects. maybe an extension of the cu is needed or write your own code.

check: http://www.w3schools.com/dom/dom_nodes_create.asp

best regards