From: Christophe de V. <cde...@al...> - 2002-12-03 15:51:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi murray, I've just realised that in node.cc version 1.8, you commited this: - Rename is_content() to has_content(), because that's what it tells us. Removed _is_content member bool - we can check _content.empty() instead. Well, my anderstanding of that is different : the accessor had, for me, the right name. If we look at the tree generated by libxml, the correponding node has a particular type, XML_TEXT_NODE, and cannot have any attribute/children. A xml code like "<name>foo</name>" will generate 2 nodes. One named "name", and another which IS the content ("foo"). Do you agree or did I get something wrong ? Anyway I'm thinking of creating a special class for content nodes. The thing I don't know yet is : can 'normal' node has both content node AND 'normal' children ? Regards, Christophe -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj3s0sMACgkQB+sU3TyOQjDtWwCg6y6kOnyW3nJ/9e80jEqDoHSD QHoAn2r50FZgFFaiqX5SQgT+4Xzwu0Q9 =4GYm -----END PGP SIGNATURE----- |