| View previous topic :: View next topic |
| Author |
Message |
Alejandro Castro Guest
|
Posted: Wed May 16, 2007 6:39 am Post subject: How can I create CDATA node with TXMLDocument |
|
|
Im trying to create a CDATA section on a XML document, the most I have found
is something like
XML1: TXMLDocument
..
..
XML1.CreateNode('SCRIPT',ntCData)
But obviously, doesnt work.
What is the way to to it ?
Thanks
Alejandro |
|
| Back to top |
|
 |
Eddie Shipman Guest
|
Posted: Wed May 16, 2007 6:40 pm Post subject: Re: How can I create CDATA node with TXMLDocument |
|
|
Alejandro Castro wrote:
| Quote: | Im trying to create a CDATA section on a XML document, the most I
have found is something like
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;
-- |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 10:49 pm Post subject: Re: How can I create CDATA node with TXMLDocument |
|
|
"Eddie Shipman" <mr_delphi_developer (AT) nospamyahoo (DOT) com> wrote in message
news:xn0f69o95ilccix003 (AT) forums (DOT) borland.com...
| Quote: | n := oXMLDoc.createCDATASection('nothing here');
|
T/IXMLDocument.CreateNode() calls IDOMDocument.createCDATASection()
when ntCData is specified.
Gambit |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 10:50 pm Post subject: Re: How can I create CDATA node with TXMLDocument |
|
|
"Alejandro Castro" <alejandro (AT) poware (DOT) com> wrote in message
news:464a60e0$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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 |
|
| Back to top |
|
 |
|