From: Edd D. <ed...@us...> - 2002-11-21 23:27:51
|
On Thu, 2002-11-21 at 17:33, Christophe de VIENNE wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi, >=20 > I think in a soon future we should reimplement the DomParser on top of th= e Sax=20 > Parser. > It may be a bit more difficult, but it would avoid to have this temporary= =20 > libxml doc in memory, and especially all the nodes of the tree. We would=20 > construct directly our Nodes structure. > On small documents the current implementation is not a problem, but with = big=20 > ones it could save a LOT of memory... >=20 > Any comments ? >=20 Makes a lot of sense.=20 The current DOM implementation is a bit disappointing in that it doesn't provide namespace information. I presume DOM Core level 2 would be a good target to head for. It would be most convenient to do it on top of a SAX2 implementation in order to get the namespace information, rather than redoing the namespace handling purely for the DOM layer. Of course, a SAX2 API would make me very happy. -- Edd |