From: Ben Hochstedler (benh@eeyore.moneng.mei.com)
Date: Fri May 28 1999 - 17:01:53 EDT
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.
-Ben
Ben Hochstedler http://www.mei.com GE Marquette Medical Systems
benh@eeyore.moneng.mei.com Phone: 414-362-3317 Fax: 414-362-3389
*** tree.c 1999/04/21 20:11:52 1.27
--- tree.c 1999/05/28 20:56:24
***************
*** 2776,2786 ****
if (output == NULL) return(-1);
#ifdef HAVE_ZLIB_H
}
- #endif
- xmlDocContentDump(buf, cur);
-
- #ifdef HAVE_ZLIB_H
if (zoutput != NULL) {
ret = gzwrite(zoutput, buf->content, sizeof(CHAR) * buf->use);
gzclose(zoutput);
--- 2776,2782 ----
---- 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
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:27 EDT