Re: [xml] xmlDocPtr returned by xmlSAXParseMemory()

On Wed, Aug 28, 2002 at 04:33:05PM +0200, Holger Rauch wrote:
Hi Daniel!

Thanks for your reply!

On Wed, 28 Aug 2002, Daniel Veillard wrote:

  use xmlParseMemory(const char *buffer, int size)

This is what I'm currently using, however, I would like to switch to SAX
for performance reasons. That's why I was asking the question in my
previous mail.

  Read the code !!!

xmlDocPtr xmlRecoverMemory(const char *buffer, int size) {
   return(xmlSAXParseMemory(NULL, buffer, size, 1));

  You will not gain anything, either you build the tree or you use
the SAX interface, what did you expect ?


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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