Re: [xml] A generic way to add user data to nodes?
- From: Daniel Veillard <veillard redhat com>
- To: Gary Pennington <Gary Pennington sun com>
- Cc: xml gnome org
- Subject: Re: [xml] A generic way to add user data to nodes?
- Date: Tue, 15 Jan 2002 04:02:03 -0500
On Tue, Jan 15, 2002 at 08:52:27AM +0000, Gary Pennington wrote:
topically enough...
I think that there is a bug in xmlStaticCopyNode. (version libxml2-2.4.12)
and should be in 2.4.13 too.
Here's the scenario, I build up a tree and store application specific
data in _private. I then copy that tree elsewhere and try to use the
application specific data, however _private is now NULL.
I know it isn't NULL before it's copied and I really need that data
after the copy. Should xmlStaticCopyNode copy the value of _private? (I
think it should).
well I just gave a similar example where based on the XSLT spec semantic
it is clear xmlStaticCopyNode should not copy it (holding the xslt key
from the document node in _private).
We are both right in our own use. There is 2 possible distinct semantics
and to avoid API explosion only a class based approach as suggested by
Simon would handle this correctly. But it's a large enhancement of the
set of API.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]