Re: [xml] <li> closing <li> in HTTPparser.c

Date view Thread view Subject view Author view

From: Kristian Hogsberg Kristensen (hogsberg@daimi.au.dk)
Date: Tue Oct 05 1999 - 20:53:41 EDT


Daniel Veillard <Daniel.Veillard@w3.org> writes:

[...]

> > But actually I need the DOM tree later on anyway, so I would be happy
> > if I could just add a SAX handler, instead of replacing to default
> > one. An elegant way to implement multiple SAX handlers could be to do
> > a meta SAX handler, that has a list of SAX handlers and just
> > propagates the callback to each of the handlers in the list.
>
> I would rather suggest that you provide your own SAX handler which
> then call all the original SAX handler function, then do your own
> processing. I would not have to change data structures which would
> break binary compatibility :-\

Yes, this is definately the simpler approach, which I would prefer as
well; there's no need to over-design things. However, I wasn't sure
wether the default SAX callback handlers were public (names such as
startElement suggest otherwise), or are you supposed to get at them
through the global htmlDefaultHander struct? And even so, I couldn't
call the default handlers, since they expect the parser context as
callback userdata, and I dont know about the context when calling from
a custom SAX handler...

> > Finally, how about a way to attach custom data to xmlNode? The

[...]

> There is a couple of fields dedicated to that and present at the
> beginning of most exportable data structures. Corba can be implemented
> withnonly one poiter but there is two so you should be able to use at
> least one of those:
> ---------------------------------
> void *_private; /* for Corba, must be first ! */
> void *vepv; /* for Corba, must be next ! */
> ---------------------------------

Uh, okay... I've been reading the comments as if Corba would be
needing both pointers, but this isn't the case? Anyways, I'll have to
study gdome a bit, hopefully that will clarify things.

thanks,
Kristian

----
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:48 EDT