Hello,
I have just started using XercesC which is a kind of nice experience.
This is part of DOMPrint.cpp (as of XercesC ver. 2.7.0):
437: DOMWriter *theSerializer =
((DOMImplementationLS*)impl)->createDOMWriter();
....
497: delete theSerializer;
However, according to the documentation what would be required here is
theSerializer->release();
See http://xml.apache.org/xerces-c/program-dom.html :
Objects created by DOMImplementation::createXXXX Users must call
the release() function when finished using any objects that were created
by the DOMImplementation::createXXXX (e.g. DOMBuilder, DOMWriter,
DOMDocument, DOMDocumentType).
Who is correct ? The sample or documentation ?
Best regards,
Kris.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]