On Thursday, March 14, 2002, at 12:30 PM, Nicola Pero wrote:
Anyway - I came to the conclusion that the only way to fix is it is to
change the API of the GSXMLDocument, GSXMLNode and GSXMLNamespace classes
enforcing some much more strict relationships between the different
objects - each node *must* belong to a document (and retains the
document,
and you can't build a node without a document); each namespace *must*
belong to a node (and retains the node, and you can't build a namespace
without a node); you can't unlink a node from a document, you can at most
move the node from one place in the document to another place, or destroy
the node completely.
I think that is probably the best thing to do.