Reuven Nisser wrote:
> Hi All,
>
> I have a big project using MSXML and I want to migrate to XERCES-C. I
> already have low level XML classes and "talk" to the SDK and I only
> want to replace their contents.
>
> I found one major problem. In MSXML4, all nodes are released only when
> all references to the document are gone.
>
>
> For example:
>
> 1. Create a document.
>
> 2. Get the root element of the document.
>
> 3. Release the document ptr.
>
> 4. The root elementis still valid, I can walk over all the XML using
> it and I can even get the document ptr again using it.

Hi Reuven,

how are, finally, the DOM nodes beeing released in MSXML? Is there a 
release method for the root element, a release method for each element 
or even a global release function?

>
> In XERCES-C releasing the document ptr will invalidate all the nodes
> owned by the document. It has certainly a performance advantage but I
> will need to re-write the whole code to support it.
>
>
> Any ideas? Am I missing anything?

I'd think about writing a wrapper interface that provides
1. a reference to the document that can be released without actually 
releasing the DOMDocument object behind it
2. a reference to the DOM tree
3. a sane strategy to release things (regarding my first question).

HTH,
                        Axel




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

Reply via email to