[xml] Re: Converting text to CDATA
- From: Octavian Afilipoai <atavi10 yahoo com>
- To: xml gnome org
- Subject: [xml] Re: Converting text to CDATA
- Date: Sat, 7 May 2005 20:17:11 -0700 (PDT)
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]