[xml] adjusting the indent level
- From: Aaron Patterson <aaron patterson gmail com>
- To: xml gnome org
- Subject: [xml] adjusting the indent level
- Date: Mon, 6 Apr 2009 16:01:07 -0700
Hi,
Is there a way to adjust the indenting level when using xmlSaveToIO()?
I've set xmlIndentTreeOutput to 1, set the xmlTreeIndentString, and
made sure to enable XML_SAVE_FORMAT in the options, but none of this
seems to help. Any hints would be greatly appreciated.
The code I have right now is like this:
xmlIndentTreeOutput = 1;
xmlTreeIndentString = "---------------";
xmlSaveCtxtPtr savectx = xmlSaveToIO(
(xmlOutputWriteCallback)io_write_callback,
(xmlOutputCloseCallback)io_close_callback,
(void *)io,
NULL,
options
);
xmlSaveTree(savectx, node);
xmlSaveClose(savectx);
Thank you!
--
Aaron Patterson
http://tenderlovemaking.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]