[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

I could manually add the CDATA identifiers like

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

Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 

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