[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Using APR-util's expat

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-03-17 23:00:07 CET

Ben Collins-Sussman <sussman@collab.net> writes:
> Hmmm, interesting. I just skimmed apr_xml.h, and indeed, it's a
> different approach. Subversion defines expat callbacks that do
> specific "work" for each tag as the parse is in progress. But the APR
> method is to parse the whole document into memory, and then hand the
> whole linked list of structures over to your program.
>
> I guess this wouldn't be *such* a big change. I mean, we'd just need
> to write a a single routine that walks a fully parsed XML-document
> structure, and calls our existing callbacks!

Hmmm, is this desirable, though? We've compromised in the past and
read entire structures into memory to save the development time
associated with a streamy approach, but this would be the first time
we actually "regressed" streamy code to become in-memory code. :-)

Shouldn't we prefer an XML parser that at least *can* work streamily,
even if we don't always use it that way?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 17 22:51:09 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.