[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 18:07, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 13/11/2026 à 18:00, gbWilly a écrit :
> >
> > 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
> 
> But why do you talk about 'xmlTextWriterClose()' ? I never call this
> method. I have mostly copied the code from 'gb.libxml' in that regard...
> 

Sorry, I presumed that Close was based on xmlTextWriterClose() and that EndDocument (in gb.libxml) is based on xmlTextWriterEndDocument() as that makes sense in my head, using names likewise to the libary it interfaces with. I wasn't aware that your close is based on xmlTextWriterEndDocument() as well.

But the my question, why then doesn't it work, are you doing things differently, is it because it all became static, something must be causing it. I'm done with it for today, spend better part of an afternoon on this and it's time to prepare me some food.

I hope is somehow will be solved.
Anyway thank for your time and effort.


gbWilly



Follow-Ups:
Re: gb.xml2: xmlwriter gives error on creating xml fileBrian G <brian@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 filegbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: gb.xml2: xmlwriter gives error on creating xml filegbWilly <gbWilly@xxxxxxxxxxxxxx>
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>