Re: [xml] xmlDocDumpMemory and xmlParseMemory

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Nov 08 2000 - 12:15:38 EST


On Wed, Nov 08, 2000 at 11:50:33AM -0500, Matthew Kellett wrote:
>
> Sorry, I should have mentioned that.
>
> I was using libxml 2.2.2 and have moved to libxml 2.2.7, with no effect.
>
> I do not use xmlKeepBlanksDefault() anywhere in my code.
>
> I've walked through the functions used by xmlDocDumpMemory and there seems
> to be an explicit addition of carriage returns in each one. The
> xmlDumpNode* functions seem to have a switch for formatting but it isn't
> brought out to the level of xmlDocContentDump() or xmlDocDumpMemory() It
> would be nice to have a switch to turn this formatting off.

Is changing

xmlNodeDump(buf, cur, child, 0, 0);

by

xmlNodeDump(buf, cur, child, 0, 1);

in xmlDocContentDump() while loop enough to fix your problem ?

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
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 Nov 08 2000 - 12:45:05 EST