[xml] Simple question on going from xmlDocPtr to memory buffer
- From: Alain Paschoud <paschoud fastcom-technology com>
- To: xml gnome org
- Subject: [xml] Simple question on going from xmlDocPtr to memory buffer
- Date: Thu, 07 Jul 2005 09:40:30 +0200
Hi all,
I am new with XML, and wrote a program that should do next things:
1) Read and decode a file with DES (no XML functions here), put it in a
memory buffer.
2) Parse the XML which is in the memory buffer. Used : xmlParseMemory()
3) Modify elements. Used : xmlNodeListGetString() and xmlNodeSetContent()
4) "un"parse the xmlDocPtr to get XML ascii in memory
5) Crypt and write this buffer to a file (no XML here)
The problem is on the 4th step : I can't find a function doing the
opposite than xmlParseMemory(). I mean lead from xmlDocPtr type to a XML
in ascii in memory. I found it for writing directly to a file
(xmlSaveFile), but not in memory. Can someone help ?
Thank you very much for any information.
Best regards.
--
Alain Paschoud
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]