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

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


On Wednesday, November 11th, 2026 at 18:18, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> There is no way that a library can make PRINT or 'File.Load()' fail, so
> I don't think your problem is directly related to the 'libxml2' library
> version at all.
> 
A few observations:

Scripts:
- Using the xml script instead of the xml2 script the Print File.Load(sFile) works. The scripts are the same only adapted to the component, both project make the xml file, load xml file and print xml file. One does well, the other doesn't.
- Only in relation to xml2 the Print File.Load fails

GUI projects in IDE:
- Same project, instead of 'Print File.Load', now the File.Load is used to load the created file into a TextArea, all the rest of teh code remains the same.
- The project based on gb.xml creates the xml file and loads the xml file into the TextArea after creation
- The project based on gb.xml2 creates the xml file and DOESN'T load the xml file into the TextArea.
- This time no Print, same problem, so that narrows it down to File.Load, me seems. But why?

Another test (both in IDE and as script):
- run the xml2 project and create the xml file with gb.xml2
- next comment out the xml creation code and leave Print File.Load(sFile)
- run the xml2 project again and the file loads, but then xml2 code is commented and isn't doing anything

The problem is on both Debian 12 MATE as Debian 13 MATE running master from OSB repository. Both run in a VM. I'm thinking if I can find a manner to test this on a real system instead of a vm.

It's a little mystery.

gbWilly


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 filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml fileBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>