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



On Fri, Sep 13, 2002 at 04:21:38PM +0200, Michel GOUGET wrote:

  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()',

  Yeah, naming in the API is a big bad mess ... sigh ...

versus

'xmlOutputBufferPtr buf'    in
'xmlSaveFormatFileTo()'

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

  no problem :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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