Re: Importing sticky ntoes



Il giorno dom, 13/11/2011 alle 17.12 +0200, Aurimas Černius ha scritto:
> Hi,
> 
> [...] 
> > The problem now is that not all notes are loaded. When I start gnote
> > (after removing .local/share/gnote and .config/gnote), I only see some
> > of them, and in the terminal:
> > 
> > pietro@debiousci:~$ gnote
> > Gtk-Message: Failed to load module "pk-gtk-module"
> > (140635264354688) ERROR: error_handler - XML error EntityRef: expecting
> > ';'
> > 
> [...]
> > 
> > Is there any particular xml validation I can perform to understand what
> > gnote doesn't like?
> 
> Can you provide the sample note that does not import?

Well, this is a sample stickynotes_applet file which will not import:

-----8<----------8<----------8<----------8<----------8<----------8<-----
<?xml version="1.0"?>
<stickynotes version="2.30.0">
  <note title="A" x="1" y="25" w="252" h="315">Pisa &lt;
Bologna:</note>
</stickynotes>
-----8<----------8<----------8<----------8<----------8<----------8<-----


but will neiter raise any error. It will import regularly if I remove
the "&lt;" bit.

The following is an example which will raise the errors
"(140522793548160) ERROR: load_addins_for_note - trying to load addins
when they are already loaded
(140522793548160) ERROR: error_handler - XML error EntityRef: expecting
';'" (and not import):

-----8<----------8<----------8<----------8<----------8<----------8<-----
<?xml version="1.0"?>
<stickynotes version="2.30.0">
  <note title="regali" x="1" y="25" w="289" h="340">example
http://www.example.com&amp;products_id=219
</note>
</stickynotes>
-----8<----------8<----------8<----------8<----------8<----------8<-----


and finally, the following will raise the errors
"(140400014412160) ERROR: load_addins_for_note - trying to load addins
when they are already loaded
(140400014412160) ERROR: error_handler - XML error xmlParseEntityRef: no
name" and import an empty (but with the right title) note:



-----8<----------8<----------8<----------8<----------8<----------8<-----
<?xml version="1.0"?>
<stickynotes version="2.30.0">
  <note title="regali" x="1" y="25" w="289" h="340">example&amp;
</note>
</stickynotes>
-----8<----------8<----------8<----------8<----------8<----------8<-----


bye

Pietro



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]