Re: [xml] xmlDocContentDumpOutput() should be exposed in API




  Use xmlSaveFileTo(), it will also call the close callback of your I/O
buffer at the end. No need to increase the API size in this case.

Thanks for your quick answer.

You are - nearly :-) - correct: I can use 'xmlSaveFormatFileTo()', as I need
to use a homebrew OutputBuffer because of my specific callbacks.

What confused me was that the 1st parameter was   'const char *filename'
in
'xmlSaveFormatFileEnc()',
'xmlSaveFileEnc()',
'xmlSaveFormatFile()'
'xmlSaveFile()',

versus

'xmlOutputBufferPtr buf'    in
'xmlSaveFormatFileTo()'

You foresaw everything :-), many thanks for your great library

Michel Gouget







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