Re: [Libxmlplusplus-general] Re: [xml] Re: [gnomemm] ANNOUNCE: libxml++ is now sane.
- From: Christophe de VIENNE <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [Libxmlplusplus-general] Re: [xml] Re: [gnomemm] ANNOUNCE: libxml++ is now sane.
- Date: Thu, 21 Nov 2002 14:45:49 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Jeudi 21 Novembre 2002 13:24, Paul Davis a écrit :
> >Personally, I have tried to avoid using add_child(Node* node) for this
> >reason. I think it would be best to say
> >"All Nodes must be created by DomParser, not by yourself."
>
> i believe that this doesn't work when you are trying to build a tree
> yourself before saving it back to disk. if you have a subtree built by
> function B that is returned to function A for incorporation into the
> nascent tree, its hard to see how you can get DomParser to handle
> anything for you. i think.
>
For me it's more the owner of the Node (which could the DOMParser, but also
another node) which should handle creation and deletion of a node.
On the other hand, let a method in Node to add a child without copying it
could be usefull if we, for example, merge a part of a tree in another : this
would avoid a copy of nodes that would be anyway deleted just after the
merge. But in this case the method should have an explicit name.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj3c444ACgkQB+sU3TyOQjD0KQCeNOzsoidQvHtV7ofnTQ5h+s41
6E8AmgJbgQaEFUIWVcPDyBLF+W08Oj4B
=br8J
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]