Re: [xml] stream reading?

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Jun 03 1999 - 03:23:36 EDT


  Hi William,

> Is it possible to have libxml read from a stream (i.e. FILE*)? I've been
> browsing through documentation and source code and I can't determine the answer
> --- there is a hint that I might be able to do it with SAX but SAX is very
> confusing to me now.
>
> The reason I want this is so that it can read over a TCP socket without having
> to buffer everything in memory first.

  This is not currently possible, but I'm working toward a streamed model.
I agree that SAX isn't well explained yet, I will try to update the xml.html
example page. Basically it allow to take control of everything except the
core parsing code, and work as callbacks, avoiding the DOM tree building.
In the meantime, have a look at testSAX.c in the tarball.

Daniel

-- 
	    [Yes, I have moved back to France !]
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.
----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:27 EDT