Re: [xml] SAX, compression, etc

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri May 26 2000 - 03:22:00 EDT


On Thu, May 25, 2000 at 03:20:51PM -0400, Adrian Feiguin wrote:
>
> Hi, y'all. I have a couple of questions.
>
> 1) I found that it's possible to use compression for the DOM interfase (a
> la gnumeric). Is it possible to use it also for the SAX one? Is this

  yes it should, the way the parser core processes input is independent
of how this input is handled.

> feature also usable in the Win32 version?

  If it is configured in yes, in standard, I assume it's not the case
on Windows.

> 2) I am using libXML in SciGraphica
> (http://magnet.fsu.edu/~feiguin/scigraphica) to save two different type of
> objects: Worksheets and Plots, using an approach similar to gnumeric(for
> the format) and libglade(because I'm using SAX).
> I can save the worksheets and plots separate (individually), or all
> toghether in a project.
> Any idea about how to use the same two SAX parsers I use for the
> individual objects, for the entire project?

  what do you mean by SAX parser ? You may be able to use the same set
of callbacks, yes, but you will have to add some extra logic to be able
to process both inputs.
  If you also mean the user data context, then it's completely dependant
on what is put in there.
 
> Should I read the file once
> for the worksheets using the worksheet's SAX parser, and once for the
> plots using the plots' one? (this means reading the file twice).
> Or I better merge the two parsers in a third one? This is not a bad idea:
> instead of two parsers, I use only a big one, and I use the same for
> reading worksheets, plots, and projects. Any suggestions are welcome!

  I can only comment on the fact that keeping all the worksheet in a
single XmL file is more conveneient but also more dangerous. If you get
an error (say a bad spot on a floppy disk) then you potentially loose all
your files. This may also impact performances if you do frequent backups
in the background of the modified data.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

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