Re: [xml] Whitespace rears its ugly head again

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Dec 05 2000 - 20:13:32 EST


On Mon, Dec 04, 2000 at 03:31:08PM -0500, Matthew Kellett wrote:
> Hi Harry,
[...]
> Now that change has been accomplished there is no way that I know of
> getting a formatted dump of the tree, since the function being called is
> static. I would find it useful as well, for logging of the xml in
> human-readable format. Maybe Daniel could consider adding an
> xmlDocDumpMemoryFormatted call for the next version.

  Harry's problem is certainly due to the fact that he builts the
tree using the libxml interfaces. In this case there is no formatting
spaces added to the tree. This means that libxml which now outputs
the exact tree when saving to memory don't adds the formatting spaces
by default. I saw no other solution than adding new APIs for forcing
this. So I added xmlDocDumpFormatMemoryEnc() and xmlDocDumpFormatMemory()
with an extra parameter.
  I suggest Harry to upgrade to next version when released and call
the new function with the format parameter equal to 1. This should solve
the problem at a minimal cost.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 06 2000 - 09:43:48 EST