Re: [Libxmlplusplus-general] Multiple Node types
- From: Christophe de Vienne <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [Libxmlplusplus-general] Multiple Node types
- Date: Mon, 9 Dec 2002 21:57:59 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Lundi 9 Décembre 2002 21:16, Murray Cumming wrote:
> Sorry, this time I'm sure. The example is showing child nodes, with the
> name "text". content() returns nothing for their parent nodes.
>
that's funny because I saw the same 'bug' in a different way :
For me the problem was at write time (the created xmlNode created for a text
node was a normal one) and in the name of the accessor (has_content instead
of is_content).
That's why I changed the way dom_parser display them, and was annoyed with the
has_content accessor...
I agree on the bug fix release.
I think it would be better to rename has_content() to is_content() since it
correspond to the actual behavior (of the previous releases too), and to
correct the write method (there is only one line missing, it seems to be a
mistake I did when rewriting write).
Do you agree on that ?
Cheers,
Christophe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE99QPXB+sU3TyOQjARAgmGAKCk5Btn147Du2LXz2ZsFg0D81I66QCgr4DM
Z9h3BvM9PDXWsz3HMEUixLI=
=q8Ha
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]