Re: [xml] xmlDocPtr save to file
- From: Bjoern Hoehrmann <derhoermi gmx net>
- To: AndrewHartley <andrew hartley bcs org uk>
- Cc: xml gnome org
- Subject: Re: [xml] xmlDocPtr save to file
- Date: Mon, 07 Jul 2008 17:42:14 +0200
* AndrewHartley wrote:
I have a valid XML file loaded into an xmlDocPtr and would like to
successfully save to file. When I use the xmlSaveToFilename:
[code]
xmlSaveToFilename(szFilepath, NULL, 0);
[/code]
The file isn't succsfully written. I would appreciate any helpful advice.
You don't pass any node to the function, so how would it know what you
want to save? xmlSaveToFilename creates a new xmlSaveCtxtPtr, you have
to use xmlSaveTree to actually save anything using the context.
--
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]