Re: [xml] SAX, compression, etc

Date view Thread view Subject view Author view

From: Adrian Feiguin (feiguin@magnet.fsu.edu)
Date: Fri May 26 2000 - 13:58:47 EDT


On Fri, 26 May 2000, Daniel Veillard wrote:

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

Sorry for not beign clear, but I don't manage the technical vocabulary yet
;-). I mean the SAXHandler struct.

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.

I fixed this, and it's working great. James's docs and LibGlade code were
very useful in this sense. I put all the code in one handler
and I use the same to read worksheets, plots, and projects. You also have
the option to save all separate.
 Now I have more doubts:
1) Can I find some documentation abour XML string handling --the
functions XMLStr*? Most of them look obvious, but anyways...
2) How do I do to parse special characters like '<' '>' in a string when
I read a content using characterSAXfunc?. I understand that they are
represented by expressions like 'lt' and 'gt' (just viewing gnumeric
files). Where can I read more to understand how to handle this?
3) Where can I read about using SAX + compression?

BTW, you migh already noted that I'm completely new to libXML and XML
itself.
Thanks a lot for your help,
<ADRIAN>

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