[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: gbWilly <gbWilly@xxxxxxxxxxxxxx>
- Date: Fri, 13 Nov 2026 17:00:38 +0000
- To: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Cc: user@xxxxxxxxxxxxxxxxxxxxxx
On Friday, November 13th, 2026 at 17:25, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote: > Le 13/11/2026 à 17:06, gbWilly a écrit : > > I have no explanation. > > The 'XmlWriter.Close()' method of 'gb.xml2' does the same thing as the > 'XmlWriter.EndDocument()' method of 'gb.libxml': it calls the 'libxml2' > API 'xmlWriterEndDocument()'. > > I just changed the name of the Gambas method. > > The difference is that 'gb.libxml' frees the 'xmlWriter' parser > immediately after calling 'xmlWriterEndDocument()', whereas 'gb.xml2' > frees the parser only when the Gambas 'XmlWriter' object is freed itself. > Both xmlTextWriterEndDocument() and xmlTextWriterClose() exist in libxml2 The latter one since libxml2 2.13 None of my systems are on 2.13 or higher. xmlTextWriterEndDocument() clearly does something different that xmlTextWriterClose() on a pre-2.13 libxml2 library version, being it exist and it works. Is it problematic to implement both? gb.xml has both as well and they both work on my system. I'm just curious if using EndDocument, based on xmlTextWriterEndDocument(), will work as it does in gb.libxml. It's clearly possible with libxml2, but not with gb.xml2, so something is different between using close based on xmlTextWriterClose() and EndDocument based on xmlTextWriterEndDocument(). Why else would they both exist inside the libary? gbWilly
| gb.xml2: xmlwriter gives error on creating xml file | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| 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> |
| 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 | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: gb.xml2: xmlwriter gives error on creating xml file | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| 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> |