[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gb.xml2: xmlwriter gives error on creating xml file
[Thread Prev] | [Thread Next]
- Subject: Re: gb.xml2: xmlwriter gives error on creating xml file
- From: Brian G <brian@xxxxxxxxxxxxxxxx>
- Date: Wed, 11 Nov 2026 16:00:59 -0800
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 11/11/26 13:28, gbWilly wrote:
when I test it, it looks like the file.load, is loading an empty file, as if the hWriter.Close, is not writing the data, but has created the file,On Wednesday, November 11th, 2026 at 19:16, Brian G <brian@xxxxxxxxxxxxxxxx> wrote:On 11/11/26 08:00, Benoît Minisini wrote:Le 11/11/2026 à 16:51, gbWilly a écrit :On Wednesday, November 11th, 2026 at 12:20, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:Le 10/11/2026 à 22:28, gbWilly a écrit :Added is a screenshot of me running two scripts: First script created xml-test.xml file and prints content in terminal Second script created xml2-test.xml file but refuses to print its content in terminal. I opened it to show you it exists and has proper content, so that part goes well.It may fail because you use an old version of 'gb.xml2'.I cloned the Debian 12 vm with master installed, upgraded the clone Debian 13 and tried again. The error output in terminal is gone, as you can see on the screenshot. So, that had to do with the library version it seems.Everything works here,Everything? You sure? - The error line is gone (this changed) - The file is created (this already happened, so unchanged) - The file content is printed in terminal (this doesn't happen, so unchanged) In added a screenshot: - In red the file created by xml script (gb.xml) and printed in terminal (this is the expected behavior) - In yellow the file created by xml2 script (gb.xml2), but it is not printed (not the expected behavior) Did the xml2 script print the created file in terminal on your system? As that doesn't work for me as seen in the screenshot. And if so, what could be the reason? I mean the file is there.Here is a screenshot.Can I also get a copy of your test file? --It is attached in the first post
then later the data is written/flushed to the file when the app closes I added a hex editor into the app and it also shows no data. code ......hWriter.Close ' closes the xml file, but really does not, it does not flush the data to the app is closed
'--end create xml file-- Print Quote(sFile) Shell "ghex /home/brian/Desktop/test.xml" Wait ' also opens an empty file Print File.Load(sFile) 'gets an empty file Print Quote(sFile) -- ~~~~ Brian
Attachment:
OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
| Re: gb.xml2: xmlwriter gives error on creating xml file | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| gb.xml2: xmlwriter gives error on creating xml file | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: gb.xml2: xmlwriter gives error on creating xml file | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: gb.xml2: xmlwriter gives error on creating xml file | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: gb.xml2: xmlwriter gives error on creating xml file | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: gb.xml2: xmlwriter gives error on creating xml file | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: gb.xml2: xmlwriter gives error on creating xml file | gbWilly <gbWilly@xxxxxxxxxxxxxx> |