Re: [xml] raw data



On Wed, 2008-06-11 at 15:59 +0100, Pete Cordell wrote:
Original Message From: "Daniel Veillard"
On Wed, Jun 11, 2008 at 08:52:06AM +0200, K.Karamazen wrote:
What is the standard way to encode raw data into CDATA section?

 base64

And you don't actually need to wrap the base64 in a CDATA section.  Just 
make the base64 your element or attribute content.

HTH,

Pete Cordell
Codalogic
For XML C++ data binding visit http://www.codalogic.com/lmx/


Yes, thank you. I forgot to say that only characters 0x20-0x7e may be
used in the encoding and that they are not escaped if not needed (i.e.
in that range only ']]>' escaped) so that:
1) the text remains readable
2) the text can be edited with a simple editor 

Is there such possibility in libxml2?





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