BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I create CDATA node with TXMLDocument

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Alejandro Castro
Guest





PostPosted: Wed May 16, 2007 6:39 am    Post subject: How can I create CDATA node with TXMLDocument Reply with 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
Back to top
Eddie Shipman
Guest





PostPosted: Wed May 16, 2007 6:40 pm    Post subject: Re: How can I create CDATA node with TXMLDocument Reply with quote



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





PostPosted: Wed May 16, 2007 10:49 pm    Post subject: Re: How can I create CDATA node with TXMLDocument Reply with quote



"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





PostPosted: Wed May 16, 2007 10:50 pm    Post subject: Re: How can I create CDATA node with TXMLDocument Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.