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

-- 
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]