Re: [xml] XML_IO_EBADF with xmlDocDump

2021-01-27 Thread Danny Holstein via xml
Thanks, but nope, that's not the case. I'm able to use FILE* fp with fputs() without issue. On Wed, Jan 27, 2021, 4:23 PM Liam R E Quin wrote: > On Wed, 2021-01-27 at 13:37 -0600, Danny Holstein via xml wrote: > > > > With modes "w+" and "w+b", I get XML_IO_FLUSH. Adding "c" to the > > modes

Re: [xml] XML_IO_EBADF with xmlDocDump

2021-01-27 Thread Liam R E Quin
On Wed, 2021-01-27 at 13:37 -0600, Danny Holstein via xml wrote: > > With modes "w+"  and "w+b", I get XML_IO_FLUSH.  Adding "c" to the > modes > doesn't change anything, "x" causes the fopen() to fail with a "*file > exists*" error. Sounds like you are trying to overwrite a file that already