[xml] Re: Converting text to CDATA



For some reason my message was send corrupted the
first time

What is the best way to use CDATA blocks to
encapsulate the text?

Right now I do something like this in order to fill in
my_node with some_string:

xmlNodeSetContent(my_node, BAD_CAST
some_string.c_str());

I could manually add the CDATA identifiers like
this:

xmlNodeSetContent(my_node,BAD_CAST ("<![CDATA +
some_string + "]]").c_str());

but I am thinking that libxml should supply some
utilities to do this auautomatically and I just could
not find them
 
Thanks,
Tavi
 



                
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]