Hi,

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.


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.


Can you explain a bit more about why you need to release the document? You should not release it until you don't need to access any of the contents.


Gareth


--
Gareth Reakes, Managing Director           Embrace Mobile
+44-1865-811197              http://www.embracemobile.com

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

Reply via email to