Re: [xml] Re[3]: Welcome to xml

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Sep 10 2000 - 10:02:51 EDT


On Sun, Sep 10, 2000 at 03:21:14PM +0200, Manuel Guesdon wrote:
[Please sub scribe to the list, i hate having to manually approv e bounces]
> On Sat, 9 Sep 2000 19:25:56 +0200 Daniel Veillard wrote:
>
> >| On Sat, Sep 09, 2000 at 05:25:41PM +0200, Manuel Guesdon wrote:
> >| >
> >| > So, is this userData is really a "user data" I can use as I want or is it a private variable I shouldn't change ? Or is there a problem in the code ?
> >|
> >| This field is an "user data" for the SAX interface. If you use your
> >| own set of SAX callbacks, then you can initialize to whatever you want.
> >| On the other hand libxml uses it when building a DOM tree so in that
> >| case you should not change any value put there libxml would definitly
> >| break if you do (the DOM tree building routines operate on top of the
> >| SAX interface and are just the predefined default SAX handlers).
>
> Thank you Daniel.
> Could it be possible to have a userData useable for libxml users (and may be renaming userData to something like saxUserData so things will be easier to understand) ?

  Renaming, no .. I did rename stuff upon users request between 1.x and
2.x and the result had been major pain since.

> I'd like to have a useable userData to know the application context of the DOM tree building.

  Added, there is now a _private field added in the CVS bases.
Libxml won't touch it, you're responsible for setting it up and cleaning
it if needed.

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@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Sep 10 2000 - 10:43:46 EDT