[xml] Re: libxml-1.7.0 is out, [Was Re: libxml 1.6.2 is hosed]

Date view Thread view Subject view Author view

From: James Henstridge (james@daa.com.au)
Date: Wed Sep 22 1999 - 08:19:01 EDT


I wish I didn't have to rely on the xmlParserCtxt structure. It is just
that the SAX parser entry points in libxml are not usable for most SAX
parsers other than the DOM tree generator because they give no way of
setting the userData pointer that is passed to each SAX callback. As it
stands, you would need to use global variables to hold parser state
information, which is not always desirable.

The problem code in libglade is concentrated in the my_xmlSAXParseFile and
my_xmlSAXParseMemory function in glade/glade-sax.c. These two functions
give sane entry points to the libxml parser for custom SAX parsers. If
you added routines with similar functionality to libxml, I can remove the
problem code from libglade.

Please consider doing this, as the SAX interface is very useful for
writing fast parsers where the DOM tree is not required.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/

On Wed, 22 Sep 1999, Daniel Veillard wrote:

> On Tue, Sep 21, 1999 at 03:45:43PM -0400, Elliot Lee wrote: > > Contrary to assurances, it's not binary compatible with libxml 1.4.0. > > A libglade built against 1.4.0 is crashing when run with 1.6.2. > > > > Oh well, > > James libglade is using direct access to the xml parsing context > (since I didn't provide wrappers there is no blame here :-) and > that's not something I was expecting I would need to keep as-if > for the binary compatibility. Well SAX need it, so I have changed > back my structures to be 1.4 compliant, since 1.5 and 1.6 have never > been shipped from gnome.org I guess it's the best. > > I have generated libxml-1.7, tested it against the CVS libglade > compiled while the libxml and libxml-devel were 1.4, and > test-libglade example.glade > worked again, so I expect the problem to be fixed. > I also checked the old gnorpm and gnumeric, but since they don't > use the SAX interface but the DOM tree they really should not break. > > libxml-1.7 is a HUGE improvement over 1.4 which was flawed in > many respects, and I would really like to get an upgrade for > any new Gnome distrib. > Major updates includes: > > - removed memory leaks > - DTD validation > - Remote entities fetching (if turned on) > > Let me know if you have any problem with this version, it is > currently only at ftp://rpmfind.net/pub/veillard/ , I will upload it > to the Gnome FTP if I don't get alarms within 24 hours, > > Daniel > > -- > 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:47 EDT