GNOME Bugzilla – Bug 637536
Open external note file fails
Last modified: 2012-06-19 16:09:33 UTC
The following command gnote --open-note=<note_file> succeeds only when opening a note, that is in Gnote collection of notes. If it's an external file, gnote fails to read it with error message, similar to this: Entity: line 8: parser error : Extra content at the end of the document
The error happens at libxml2 usage in gnote.cpp, xmlDocPtr doc = xmlParseDoc((const xmlChar*)noteXml.c_str()); The xmlParseDoc displays the parser error. Actually, this noteXml argument comes from a read_to_rend method in streamreader.cpp. This read_to_end method puts extra content at the end of noteXml but I can't understand yet the issue more precisely.
I can no longer reproduce this bug, wokrs as expected.