> Hi,
> 
> I want to parse several files with the same DOMBuilder and
> release the obtained documents when they are no more needed.
> So I call the release method on the document object.
> But I get a memory access violation when trying to release
> the DOMBuilder object.

The DOMBuilder instance owns the object, so you should not delete it..  If 
you want to destroy any DOMDocument instances but not destroy the 
DOMBuilder, call DOMBuilder::resetDocumentPool().

You also change the default ownership behavior for DOMDocument instances 
by setting properties:

http://xml.apache.org/xerces-c/program-dom.html#DOMBuilderProperties

All of this is detailed in the header file for the DOMBuilder class and in 
the documentation.

Dave

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

Reply via email to