Re: [gdome]saving xml tree: no new line after xml elements printing
- From: Daniel Veillard <veillard redhat com>
- To: Laurent Lemaitre <laurent lemaitre mot com>
- Cc: Paolo Casarini <casarini CS UniBO IT>, "Laurent Lemaitre (r29173)" <r29173 email sps mot com>, gdome gnome org
- Subject: Re: [gdome]saving xml tree: no new line after xml elements printing
- Date: Thu, 26 Apr 2001 06:40:08 -0400
On Thu, Apr 26, 2001 at 11:55:31AM +0200, Laurent Lemaitre wrote:
> Paolo,
>
> It seems to me that having the feature of printing a newline after
> each xml elements are printed is something that should be set-able
> from a call to gdome_DOMImplementation_saveFile (the best would be
> a tabulation the number of which depends on the depth of the xml
> element).
>
> Would not be possible to add this feature to
> gdome_DOMImplementation_saveFile? (a new argument like beautify set-able
> TRUE or FALSE)
>
> I don't know if this makes sense and if I can help?
This can be achieved at the libxml level (but it's not used by defaut)
check the following:
extern int xmlIndentTreeOutput; /* try to indent the tree dumps */
and the format arg of:
xmlDocDumpFormatMemory()
xmlDocDumpFormatMemoryEnc()
xmlNodeDump()
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]