Hi,

The current implementation of Xerces is assuming that the complete document
is in memory at any given time.  This is a gross oversimplification and does
not allow for other implementations to do otherwise.  The main problem is
that pointers to nodes are returned and there is no way of knowing when the
caller is done using that pointer.

We have such an implementation ourselves (of course otherwise I would not be
concerned with that), and we provided a patch that introduces the concept of
node pointer ownership.  We are more than welcome to get some feedback from
the Xerces community about this, since I know from seeing other discussions
that others have similar issues.

All that is required is the following: call node->dispose() when you are
done using that pointer.  Of course we could use something like smart
pointers, but I would say that would go against other principals I have
observed on this project. 

Anyway, I would greatly appreciate any comment or consideration of checking
in this simple change [that is hopefully are start for more].

- URS C. MUFF
SYSTEMS ARCHITECT       - RESEARCH LAB
[EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 11:13 PM
> To: [EMAIL PROTECTED]
> Subject: DO NOT REPLY [Bug 16954] - There should be a way to release child
> nodes, once we done with it.(Patch Available)
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16954>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16954
> 
> There should be a way to release child nodes, once we done with it.(Patch
> Available)
> 
> 
> 
> 
> 
> ------- Additional Comments From [EMAIL PROTECTED]  2003-02-11 06:13 -----
> --
> Created an attachment (id=4807)
> DOMNode.hpp contains empty function dispose().
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to