Re: [Libxmlplusplus-general] sax_parser
- From: Christophe de Vienne <cdevienne netcourrier com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [Libxmlplusplus-general] sax_parser
- Date: Sat, 16 Nov 2002 16:33:50 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Samedi 16 Novembre 2002 16:16, Murray Cumming wrote:
> On Sat, 2002-11-16 at 16:02, Christophe de Vienne wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi murray,
> >
> > I just reimplemented parse and parse_memory in sax_parser without the use
> > of xmlParseChunc. The example now works.
> >
> > I need to do a bit of cleaning (10mins max.), but before commiting I want
> > to be sure you're not working on it right now.
>
> I am working on it, but I can't fix it. Go ahead. I suspect there is
> something wrong with how the file is being read into memory. Maybe an
> encoding issue.
Well, another problem with this method was that the only advantage of SAX
parser is that the entire tree is not loaded into memory no save memory, so
dumping the whole file in memory was a bit loosing this advantage...
Anyway I commited my stuffs.
Moreover after reading the documentation on SaxParser, it seems that even if
some sax parser functions returns a xmlDocPtr it contains NULL or garbage, so
having a root Node into Parser is not possible.
In fact I don't think we can put more things into Parser since the behavior of
DomParser and SaxParser is radicaly different.
Cheers,
Christophe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE91mVeoNwgyKmVCd0RAvP1AJ9541gTuXWFTCtybzmBxlSggcOPYQCeNaFB
kKJNGBPOfuK2cf0yB9H+iSw=
=j/XD
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]