GNOME Bugzilla – Bug 568919
Creates invalid gnumeric xml
Last modified: 2009-02-04 20:43:53 UTC
Version: r17084 OS: Ubuntu Intrepid The upcoming xls file is from http://bugs.kde.org/show_bug.cgi?id=115721. Steps to reproduce: - ssconvert attachment.xls foo.gnumeric - Attempt to open the new file Output of 'xmllint --valid': 2443: parser error : xmlParseCharRef: invalid xmlChar value 25 ipts/detalii.php?cat=sisteme_nec&id=sisteme_nec_powermate_vl6" tip="奈
Created attachment 127127 [details] xls file
gsf_xml_out_add_cstr will create invalid xml with id in non-NULL. } else if (*cur < 0x20 && id != NULL) { guint8 buf[8]; sprintf (buf, "&#%d;", *cur); if (cur != start) gsf_output_write (xout->output, cur-start, start); start = ++cur; gsf_output_write (xout->output, strlen (buf), buf); This probably will have to be restricted to \r, \n, and \t. Maybe \f.
Note: the "solution" will be to drop such characters on the floor. There is really nothing we can do at this point. And xml 1.1 isn't likely to happen. http://norman.walsh.name/2004/09/30/xml11
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. Linking to bug 339335 for reference.
*** This bug has been marked as a duplicate of 339335 ***