XML1: TXMLDocument
.
.
XML1.CreateNode('SCRIPT',ntCData)
But obviously, doesnt work.
What is the way to to it ?
Thanks
Alejandro
Using straight MSXML:
var
n: IXMLDOMCDATASection;
begin
n := oXMLDoc.createCDATASection('nothing here');
oXMLDoc.childNodes.item[1].appendChild(n);
end;
--
> n := oXMLDoc.createCDATASection('nothing here');
T/IXMLDocument.CreateNode() calls IDOMDocument.createCDATASection()
when ntCData is specified.
Gambit
> XML1.CreateNode('SCRIPT',ntCData)
>
> But obviously, doesnt work.
Just saying that something doesn't work says nothing about the actual
problem you are having with it. You need to be more specific. Please
show a more complete code snippet that demonstrates what you are
trying to do and why you think it is not working.
Gambit
It it obvious why it is not working!
MyNode = CreateNode(a,b);
..only creates and returns the node. The node is NOT linked into the XML document.
You need to add the node manually into the XML Tree.
ChildNodes->Add(MyNode);
// Max
BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities