Re: [xml] Uncompressed save doesn't work

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sat May 29 1999 - 07:50:30 EDT


  Hi Ben,

 thanks A LOT !

this actually fixes the bug some people have reported. I didn't detect
it since my test suite only uses uncompressed XML files !

  Commited to CVS

Daniel

On Fri, May 28, 1999 at 04:01:53PM -0500, Ben Hochstedler wrote:
> Using the code in the Gnome CVS repository, and compiled on Solaris.
>
> After saving a dia diagram uncompressed, it cannot be loaded:
>
> sysdata-seq1.dia:947: error: xmlParsePItarget: invalid name prefix 'xml'
> <?xml version="1.0"?>
> ^
> sysdata-seq1.dia:947: error: xmlParsePI : no target name
> <?xml version="1.0"?>
> ^
> sysdata-seq1.dia:947: error: Extra content at the end of the document
> <?xml version="1.0"?>
>
> It looks like the whole file is saved twice. After removing all
> of the content starting at the second occurance of <?xml version="1.0"?>,
> the diagram can then load.
>
> I looked at tree.c and found that xmlDocContentDump(buf, cur);
> is being called twice. Attached is a patch. I tested it for both
> uncompressed and compressed modes.
>
> I am using the code in the Gnome CVS repository.

-- 
	    [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:27 EDT