[xml] Re: whitespace addition bug

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 11 1999 - 11:10:57 EDT


On Thu, Oct 07, 1999 at 03:42:17PM -0500, Daniel R Risacher wrote:
>
>
> Hi again.
>
> I'm reading an xml file with xmlParseFile(filename)
> that I later save with xmlSaveFile(filename, dbs->doc)
>
> This particular xml file contains this snippet:
>
> <NAME>Sheryl Anne Elizabeth <s>Ott</s></NAME>
>
> But after I save it, it comes out as:
>
> <NAME>Sheryl Anne Elizabeth
> <s>Ott</s>
> </NAME>
>
> And hey, that's pretty reasonable. But if I load the new file and
> save it again, it comes out as:
>
> <NAME>Sheryl Anne Elizabeth
>
> <s>Ott</s>
>
> </NAME>
>
> And the next time through, I get:
>
> <NAME>Sheryl Anne Elizabeth
>
>
> <s>Ott</s>
>
>
> </NAME>
>
>
> Et cetera.
> This is probably not the optimal behavior.

  Ok, this was a lonnnnng-standing bug in the XML saving code
in the presence of mixed-content elements.
I did fix it, and commited both in Gnome and W3C CVS bases.

   thanks for reporting it,

Daniel

-- 
	    [Yes, I have moved back to France !]
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.
----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:49 EDT