[libxml++] Re: [Libxmlplusplus-general] Adding STL-container-like methods to Node instead of returning a container instance
- From: Christophe de VIENNE <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] Re: [Libxmlplusplus-general] Adding STL-container-like methods to Node instead of returning a container instance
- Date: Thu, 6 Feb 2003 18:48:33 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Jeudi 6 Février 2003 18:31, Stefan Seefeld a écrit :
> 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 wrapper
around the libxml2 structure returned by xpath operations, and implement
STL-like methods which access the libxml2 container.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Qp/xB+sU3TyOQjARAr1ZAKDlh+2YHxL4ajSf0XT52TgLYcfN4wCgmcch
BY4DjJ7iDLBkZ1zOJ0E9XeA=
=7Und
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]