Hi,
I'm new to TinyXML, and I was wondering if it is possible to embed binary data into an XML file using TinyXML? What I'm thinking about is embedding a small picture or a small sound fragment in my XML file. Usually this is done with CDATA stuff. So, will TinyXML automatically convert the binary data into XML compatible ASCII using some CDATA construct?
Or how can/should I do that?
Koen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm new to TinyXML, and I was wondering if it is possible to embed binary data into an XML file using TinyXML? What I'm thinking about is embedding a small picture or a small sound fragment in my XML file. Usually this is done with CDATA stuff. So, will TinyXML automatically convert the binary data into XML compatible ASCII using some CDATA construct?
Or how can/should I do that?
Koen
Hi Koen,
I use a base64 encoding to embed binary data into a xml file. However afaik you have to encode the data on your own.
Dominik
can you give an example please...