On Tue, Oct 31, 2006 at 09:17:11PM +0100, Giorgio Calderone <[EMAIL PROTECTED]> wrote: > > Citing the documentation about the xmlParserInputBufferRead() function: > > * > * xmlParserInputBufferRead: > * > * Refresh the content of the input buffer, the old data are considered > * consumed > * > > This function internally calls "xmlParserInputBufferGrow()" and so it doesn't > REFRESH the content of the input buffer, instead it APPEND new data to those > already present in the buffer. > > Actually it seems a duplicate of "xmlParserInputBufferGrow()". > > Is there any reason why this function doesn't do what is written in the > documentation. > > I wrote a new version of "xmlParserInputBufferRead()" which really refresh > the > content of the input buffer for my own use, if someone is interested I can > post > it on the mailing list.
Those functions are really intended for the parser use, not for user code. Their semantic is tuned to the need of the parser, changing the semantic is likely to break the parser in weird ways, I would not change them. I also don't see why you would need them ever. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
