|
From: Christophe de V. <cde...@al...> - 2003-02-06 17:49:03
|
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Jeudi 6 F=E9vrier 2003 18:31, Stefan Seefeld a =E9crit :
> I just think it is intuitive to use iterators to walk over child nodes
> (or attributes). In particular, instead of doubling the semantics of
> libxml2 (which uses doubly linked lists to hold child nodes), we could
> access that container directly instead of using our own ('NodeList').
that make sens.
>
> Of course, if the container itself is temporary, such as in case of
> the 'NodeSet' (a name defined in the XML spec) which is returned by
> an xpath 'find' operation, there is no way around.
I did not look at xpath in libxml2 but I guess that NodeSet could be a wrap=
per=20
around the libxml2 structure returned by xpath operations, and implement=20
STL-like methods which access the libxml2 container.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Qp/xB+sU3TyOQjARAr1ZAKDlh+2YHxL4ajSf0XT52TgLYcfN4wCgmcch
BY4DjJ7iDLBkZ1zOJ0E9XeA=3D
=3D7Und
=2D----END PGP SIGNATURE-----
|