cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Interest in an Expat XML example?

From: David Strauss <david_at_davidstrauss.net>
Date: Sun, 19 May 2013 02:23:10 -0700

I wanted to note that this is far more efficient than the existing
XML/HTML parsing examples. The existing examples pull the entire
response into memory before starting to parse. This new example only
allocates buffers to fit the character data between tags.

This is pretty important for our use case, which is for PROPFINDs that
can exceed 60MB of response for a large directory. Streaming the
response requires well under 1MB.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-19