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

Re: gb.xml2: xmlwriter gives error on creating xml file


On Friday, November 13th, 2026 at 15:39, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote:

> On Thursday, November 12th, 2026 at 13:19, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:
> >
> > I added a flush (normally not needed) in 'XmlWriter.Close()' in the last
> > commit . Tell me if it changes something.
> 
> I'm afraid nothing changed. What I do know is that the file is empty until the event it is created in has ended. Since the print statement is inside the event the file is empty.
> 
> I tested by adding a Wait 30, next right-click the file and the MIME type is application/x-zerosize and can't be opened. (see first screenshot)
> 
> I also added the file to print between single quotes so to better see what is returned and that is empty as well.
> 
> After the Wait ended, the empty print is done and the event ends the file MIME type instantly changes to application/xml in front of my eyes. (see second screenshot)
> 
> I suspect something in the library seems to be causing this, since it works on your system and being on Mandriva you probably have way more recent library versions that current Debian stable.
> 
> I tested on:
> - a Debian 13 MATE in vm using last OSB master update of today
> - a Debian 12 MATE on a Raspberry Pi 4 using the last OSB master update of today (I wanted it tested outside a vm to exclude the vm trowing dust in the bowl)
> 
> I can't say much more than:
> - On Debian 12 the libxml2 version is 2.9.14
> - On Debian 13 the libxml2 version is 2.12.7
> Version where taken from Synaptic Package Manager
> 

I checked the libxml2 documentation and I stumble onto what you see n added screenshot, xmlTextwriterClose is new since 2.13. I don't know if you use it and how it got closed before 2.13, but this might be causing the trouble.

gbWilly

Attachment: 1.png
Description: PNG image


Follow-Ups:
Re: gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBrian G <brian@xxxxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBrian G <brian@xxxxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>