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 - 14:17:17 EDT


On Fri, May 26, 2000 at 01:58:47PM -0400, Adrian Feiguin wrote:
> > 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...

  they are part of the parser core module:
    http://xmlsoft.org/gnome-xml-parser.html#XMLSTRDUP

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

  You don't need to handle them, the parser will, you will get < and >
characters through the characters() SAX callback

> 3) Where can I read about using SAX + compression?

  Well compression is automatically detected by the file access functions
fron-end (if compiled in) you should not have to worry about it.

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