The documentation at
http://xml.apache.org/xerces-c/program-dom.html#DOMMemMgmt  says: 

"Memory for any returned object are owned by implementation." 


Also, the documentation at
http://xml.apache.org/xerces-c/ApacheDOMC++BindingL2.html says: 

"
C++ Memory Management: 
        1. A member method "release()" is added for releasing any "orphaned"
resources that were created through createXXXX factory method. 
        2. Memory for any returned object e.g. 
                *DOMNodeList* getChildNodes() 
                *DOMNodeList* getElementsByTagName() 
                *NamedNodeMap* getEntities() 
                *... etc. 
                *are owned by implementation 

"

I have two questions: 
1. Does "implementation" mean *my* application code or does it mean the
Xerces developed DOM implementation? 
2. Would the list of methods that return an object owned by implementation
include DOMNode* getFirstChild()?  Asked another way, is my application
responsible for deleting the DOMNode returned by getFirstChild()? 


Dan Stewart 




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

Reply via email to